mapbox-gl-native
mapbox-gl-native copied to clipboard
[Android] queryRenderedFeatures incomplete
Hey!
Platform: Android Mapbox SDK version:
api('com.mapbox.mapboxsdk:mapbox-android-sdk:5.5.1') {
transitive = true
}
Device: Motorola Nexus 6 (Android 7.1.1)
Steps to trigger behavior
- Copy SelectBuildingActivity.java from Android Demo Project
- Try to select the building at LatLng 53.874537962512875, 10.683847682870237
Expected behavior
Select building completely
Actual behavior
Building is partially selected

In OSM editor the building looks like this:

I've got a few other buildings where queryRenderedFeatures gets less points than in reality. Zoom level doesn't matter.
@P-Zenker thank you for using Mapbox. The queryRenderedFeatures method returns visible features that may have been split across tile boundaries. To retrieve all (tiled)parts of a feature, use the querySourceFeatures method with a unique identifier.