Using the virtual layer component.
The virtual layer component makes it easy to play with layers inside an ArcIMS service. You can use it for the following tasks.
- Turn off/on layers during startup
- Change symbols and add where clauses
- Create joints to tables
- Add layers not specified in the AXL-config file.
In the following example we will show how you initialy turn off a layer and how you put a where clause on top of a layer during load of a service.
Turn off SDEEPER_points.
- Drag a virtual layer component onto the stage.
- Give the component the instance name 'SDEEPER_points'. The same as the layerid inside the AXL-file.
- Open the component inspector (Alt-F7)
- set visible property to false
- set target_instance_name to 'my_map', (instance name of the map component)
Query SDEEPER and only show groupid 4, show the points into black circles.
- Drag a virtual layer component onto the stage.
- Give the component the instance name 'SDEEPER4_points'.
- Open the component inspector (Alt-F7)
- set target_instance_name to 'my_map', (instance name of the map component)
- set the "where" property to "groupid = 4"
- set the "fromlayer" property to "SDEEPER_points"
- double click on the "marker symbol" property
- click on the plus sign.
- set the "width" property to 4
Screenshot of the the macromedia flash design environment. The globe sign with a big plus is the virtual layer component.
The following show the result.
Download the example here |