Is it possible to show layers with Leaflet depending on scaling? For example not show counties until zoom level reaches 10.
Thanks.
|
Is it possible to show layers with Leaflet depending on scaling? For example not show counties until zoom level reaches 10. Thanks. |
|||
|
|
|
yes you can set the scale in the constructor: for example:
vectors don't have max/min properties, you could use a zoomend event to trigger adding or removing them, something like:
|
|||||
|