mapbox / flutter-mapbox-gl

Moved to https://github.com/tobrun/flutter-mapbox-gl
Other
271 stars 60 forks source link

Add onTap, queryRenderedFeatures, and remove boilerplate #53

Closed yoavrofe closed 5 years ago

yoavrofe commented 6 years ago

Now it's possible to query the map, using:

      onTap: (coordinates, offset) async {
        (List<dynamic> geoJson = await controller
            .queryRenderedFeatures(offset, layersToSearch, null);
      },

I refracted onMethodCall in MapboxPlugin.java to make it shorter and easier to understand.

Corrected some errors regarding device pixel ratio.

Codex- commented 5 years ago

Would be great to see this in, possible for mapbox to accept and make the tiny requested change? Looks like this PR has been forgotten about.

tobrun commented 5 years ago

@Codex- thank you for the ping on this, it's on my radar

yoavrofe commented 5 years ago

I fixed the error.