mapbox-gl-native icon indicating copy to clipboard operation
mapbox-gl-native copied to clipboard

[Android] queryRenderedFeatures incomplete

Open P-Zenker opened this issue 8 years ago • 1 comments

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

  1. Copy SelectBuildingActivity.java from Android Demo Project
  2. Try to select the building at LatLng 53.874537962512875, 10.683847682870237

Expected behavior

Select building completely

Actual behavior

Building is partially selected

2018-03-28 13 14 42 2018-03-28 13 14 47

In OSM editor the building looks like this: bildschirmfoto 2018-03-28 um 13 16 38

I've got a few other buildings where queryRenderedFeatures gets less points than in reality. Zoom level doesn't matter.

P-Zenker avatar Mar 28 '18 11:03 P-Zenker

@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.

asheemmamoowala avatar Mar 30 '18 23:03 asheemmamoowala