Select to view content in your preferred language

Show different regions at different zoom level

363
1
Jump to solution
08-30-2023 08:52 PM
Labels (1)
learnArcGISMaps
New Contributor

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?

0 Kudos
1 Solution

Accepted Solutions
JillianStanford
Occasional Contributor III

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!

View solution in original post

1 Reply
JillianStanford
Occasional Contributor III

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!