nitaliano / react-native-mapbox-gl

A Mapbox GL react native module for creating custom maps
Other
2.16k stars 697 forks source link

Vector map stops showing after 16 level of zoom with ESRI V2 #1489

Closed eacbkk closed 5 years ago

eacbkk commented 5 years ago

The issue happens with Esri maps V2 on both iOS and Android. Map shows properly till zoom level 15. But from 16 it starts disappering problem. Tested in multiple version of iOS and Android. Both in simulator and devices.

Style url contains following:

style: {
    "version": 8,
    "sources": {
      "esri": {
        "type": "vector",
        "tiles": [ "https://basemaps.arcgis.com/arcgis/rest/services/World_Basemap_v2/VectorTileServer/tile/{z}/{y}/{x}.pbf" ]
      }
    },
    "layers": [
    ...
    ]
  }

ezgif com-video-to-gif

Please note, it works fine with the mapbox javascript library.

kristfal commented 5 years ago

You likely need to declare a maxZoom of 15 on the source, ex:

"sources": {
    "composite": {
      "type": "vector",
      "tiles": [
        "https://foo.com"
      ],
      "minzoom": 0,
      "maxzoom": 15
    }
  },