You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Use this style in the Android SDK (via setStyleUrl). It includes a GeoJSON source definition.
Zoom the GeoJSON features into view until they disappear
Expected behavior
GeoJSON features should be visible up to max zoom level unless otherwise specified.
Actual behavior
The GeoJSON features are visible up to zoom level 14 and disappear with zoom level 15. For debugging, we logged the current zoom level inside an OnCameraChangeListener.
Specifying the "maxzoom" attribute in the layer doesn't seem to make a difference.
Thanks for looking into this. I've tried the style in our app with SDK version 4.0.1 and it still exhibits the same behaviour. Would it be possible to share the code you tested with in order to spot any possible differences? Thanks!
I had a similar problem, which was correctable by specifying a "maxZoom" option when configuring Leaflet.VectorGrid.slicer. It passes its 'options' object into geojson-vt (geojsonvt or toposon), whose default "maxZoom" is 14.
So this is isn't a problem with mapbox, but you might be running into it because of the way your vector tiles are being sliced. Good luck!
Activity
cammace commentedon May 25, 2016
Thanks for reporting this issue, I have tested using your style and was unable to reproduce the issue. I was using Mapbox Android SDK verision
4.0.1.Feel free to open again if you are still having issues.
kaoskorobase commentedon Jun 6, 2016
Thanks for looking into this. I've tried the style in our app with SDK version
4.0.1and it still exhibits the same behaviour. Would it be possible to share the code you tested with in order to spot any possible differences? Thanks!micahcatlin commentedon Mar 6, 2017
I had a similar problem, which was correctable by specifying a "maxZoom" option when configuring Leaflet.VectorGrid.slicer. It passes its 'options' object into geojson-vt (geojsonvt or toposon), whose default "maxZoom" is 14.
So this is isn't a problem with mapbox, but you might be running into it because of the way your vector tiles are being sliced. Good luck!