Skip to content
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
This repository was archived by the owner on Aug 8, 2023. It is now read-only.

GeoJSON features disappear in zoom level 15 #4907

Closed

Description

@kaoskorobase

Platform: Android 5
Mapbox SDK version: mapbox-android-sdk 4.0.0

Steps to trigger behavior

  1. Use this style in the Android SDK (via setStyleUrl). It includes a GeoJSON source definition.
  2. 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.

Activity

  1. cammace commented on May 25, 2016

    @cammace
    Contributor

    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.

    ezgif com-video-to-gif

    Feel free to open again if you are still having issues.

  2. kaoskorobase commented on Jun 6, 2016

    @kaoskorobase
    Author

    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!

  3. micahcatlin commented on Mar 6, 2017

    @micahcatlin

    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!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions