Hello!
I am researching to see if it would be possible to see different region at different zoom level. An example would be this census bureau map which shows state level, county level, and then tract level information at different zoom level. https://mtgis-portal.geo.census.gov/arcgis/apps/MapSeries/index.html?appid=2566121a73de463995ed2b2fd...
How can this be done using SDK for JS/Online? Also is it possible to update legend as the zoom level updates to a new region?
Solved! Go to Solution.
If your JavaScript app is consuming a web map, just adjust the scale dependent visibility of each layer (or group them and adjust the visibility of the group) in the web map. The legend will automatically adjust to show the layers that are visible.
If your app is not consuming a web map, you can adjust the minScale and maxScale properties of an individual layer object.
Hope that helps.
Thanks!
If your JavaScript app is consuming a web map, just adjust the scale dependent visibility of each layer (or group them and adjust the visibility of the group) in the web map. The legend will automatically adjust to show the layers that are visible.
If your app is not consuming a web map, you can adjust the minScale and maxScale properties of an individual layer object.
Hope that helps.
Thanks!