Dobrý den!
Zjišťuji, zda by bylo možné zobrazovat různé oblasti při různých úrovních přiblížení. Příkladem je tato mapa statistického úřadu, která při různých úrovních přiblížení zobrazuje informace na úrovni států, okresů a následně sčítacích obvodů. https://mtgis-portal.geo.census.gov/arcgis/apps/MapSeries/index.html?appid=2566121a73de463995ed2b2fd7ff6eb7
Jak toho lze dosáhnout pomocí SDK pro JS/Online? Je také možné aktualizovat legendu při přiblížení na novou oblast?
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!
Přihlášení členové mohou přispívat, sledovat novinky a dělat další věci. Jste tu noví? Zaregistrujte si bezplatný účet.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.