mapbox / mapbox-plugins-android

Mapbox Android Plugins are a collection of libraries that extend our other SDKs, helping you design powerful mapping features while the plugins handle most of the heavy lifting.
https://www.mapbox.com/android-docs/plugins/overview/
BSD 2-Clause "Simplified" License
241 stars 119 forks source link

Annotation order vs click priority inverted #1205

Closed felix-ht closed 2 years ago

felix-ht commented 2 years ago

The order of annotations is inverted relative to the click priority. This causes annotations on lower (potentially occluded) layers, to priority the as opposed to the one actually visible to the user.

A detailed example of the issue can be found here:

https://github.com/tobrun/flutter-mapbox-gl/issues/563

Getting the last feature instead of the first one should fix this.

NOTE I tried testing this, but struggled to get a working setup - gradle causing build issues - so it would be fantastic is someone else could test this or help me getting a working test setup.

felix-ht commented 2 years ago

This is unlikely to be the cause of the issues, as it only queries the features on the current layer