Handle Multiple Layer Max Zoom Levels in Leaflet

المشرف العام

Administrator
طاقم الإدارة
Along with Mapbox layers, we are also adding layers from WMS and ArcGIS servers hosted by our customers to display map data relevant to them. Is there any way to figure out what the max zoom for a layer is through code so the maxNativeZoom can be set to that so they always display even at zoom levels higher than their max zoom?

Another thing I've noticed is that certain areas of Canada have satellite imagery up to zoom level 17 while others have it up to 18. When moving to a specific location on the map, is it possible to figure out what the max zoom is in that area and then set the maxNativeZoom appropriately?



أكثر...
 
أعلى