Hello,
I am interested in using syncfusion_flutter_map in one of our projects. For this, it is essential that I can add a marker on the map by clicking on it and retrieve the latitude and longitude of the point. I am using Openstreetmap, is there a solution?
Thank you in advance for your help
Hi,
Greetings from Syncfusion support.
You can place the marker at the tapped position using the MapTileLayerController.pixelToLatLng method. We have attached code snippet for your reference, kindly let us know if you need further assistance with this.
Code snippet:
class _MarkerPageState extends State<MarkerPage> { |
Regards,
Lakshmi R.
Hello,
Thank you very much Lakshmi,
I successfully get the position of a click on the map !
Have a nice day !