mapbox/flutter-mapbox-gl

Add projection API

tobrun opened this issue · 0 comments

The projection API allows to convert device to map units.

For example:

LatLng getLatLngForOffset(Offset offset)

Will convert a point on screen (exposed as Offset in flutter) to the map LatLng.

API proposal:

  • Future getLatLngForOffset(Offset offset)
  • Future getLatLngForOffset(Offset offset)
  • Future getProjectedMetersForLatLng(LatLng latLng)
  • Future getLatLngForProjectedMeters(ProjectedMeters meters)
  • Future getMetersPerPixel(double latitude)