Reputation: 155
I'm using flutter map in my application, is possible when I click on some place on map to get coordinates from that place?
Upvotes: 1
Views: 1386
Reputation: 3552
Use the onTap Handler
GoogleMap(
initialCameraPosition: CameraPosition(target: LatLng(0, 0)),
onTap: (position) {},
),
);
Upvotes: 2
Reputation: 58
Yes, it is possible to get coordinates from a click on a Flutter map. You can use the onTap() callback to get the coordinates of the place that was tapped.
Upvotes: 1