e Res
e Res

Reputation: 155

Is possible to get coordinates from click on flutter map - FLUTTER

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

Answers (2)

Ozan Taskiran
Ozan Taskiran

Reputation: 3552

Use the onTap Handler

 GoogleMap(
            initialCameraPosition: CameraPosition(target: LatLng(0, 0)),
            onTap: (position) {},
          ),
        );

Upvotes: 2

Muhammad Rizwan
Muhammad Rizwan

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

Related Questions