Skip to content

Add getProjection to Google Maps MapController #37959

@felangel

Description

@felangel

Use case

I want to be able to center the camera position in a google map when part of the map is being covered by a bottom sheet/drawer. In order to do this, I need to be able to convert LatLng to/from screen location.

For example, in Java you can convert the LatLng to/from a screen location via:

map.getProjection().toScreenLocation(latLng);
map.getProjection().fromScreenLocation(point);

I don't think this is currently possible with the flutter google map implementation.

Proposal

Add getProjection to the MapController in google_maps_flutter

Metadata

Metadata

Assignees

Labels

customer: vroomp: mapsGoogle Maps pluginpackageflutter/packages repository. See also p: labels.

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions