glenrobertson / leaflet-tilelayer-geojson

Leaflet TileLayer for GeoJSON tiles
Other
250 stars 79 forks source link

minZoom, maxZoom #22

Closed robotnic closed 9 years ago

robotnic commented 9 years ago

I want to show the geojson layer only at specific zoom levels. It's not a feature of leaflet-tilelayer-geojson so I add/remove the geojsonlayer. If the layer is not added I get the following error:

Line 108: Uncaught TypeError: Cannot read property '_pathRoot' of null

glenrobertson commented 9 years ago

Merged the PR that fixes this. Thanks again for logging the issue @robotnic