Bonjour !
Je cherche à savoir s’il serait possible d’afficher différentes régions selon le niveau de zoom. Par exemple, cette carte du bureau du recensement affiche les informations au niveau des États, des comtés, puis des secteurs de recensement selon le niveau de zoom. https://mtgis-portal.geo.census.gov/arcgis/apps/MapSeries/index.html?appid=2566121a73de463995ed2b2fd7ff6eb7
Comment faire cela avec le SDK pour JS/Online ? Est-il également possible de mettre à jour la légende lorsque le niveau de zoom change et affiche une nouvelle région ?
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!
Les membres connectés peuvent publier, suivre les mises à jour et bien plus encore. Nouveau ici ? Créez un compte gratuit.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.