Select to view content in your preferred language

Help with dynamically loading layers

656
1
10-16-2013 01:55 PM
KernCarboni
New Contributor
Fairly new to ArcGis/SL5 so hoping someone can help with a trivial requirement.
We have a map of NZ that needs to be divided into Regions/Areas/Suburbs/Streets - where each item is a parent of the children below it. Each parent/children hierarchy consists of polygon(s) existing in SQL 2008 R2.
We would like to implement the following functionality due to volume of data:
When the app starts only the region polygons will be displayed.
If the user zooms in on a specific region we want to then pull only the area polygons associated with the region and display.
Zoom in on the area and suburb polygons are pulled and displayed. Ditto for street polygons.
We have the basic functionality coded i.e displaying the legend and various layers/polygons on zooming by using Minimum/Maximum properties but this only works if we create all layers and load all the data at runtime.
Not familiar enough with the API to ensure which class/event is the best to tap into to allow dynamic loading of data?
Thanks in advance.
0 Kudos
1 Reply
ErwinSoekianto
Esri Alum
I think you can set certain layer visibility related to the zoom level and extent, so this is possible.
0 Kudos