Perform an identidy |
|
|
Selecting data on the map.To perform selection on a map you need know how the service layers are named and what fields they provide. 1) The layerid you want to make the selection on. The ArcIMS service tool will display this information between [ ]. Once you know what information you want the user to see. Do the following action on your map-viewer. 1) Drag an selectLayer component on the stage.
2) Open the properties window (Or use Alt-F7) to see all properties as shown below.
3) find the "fromlayer" property and refer to the layerid your selection should be performed on. In this example the layerid is called "SDEEPER_points"
8) Alter the symbology as you wish and press Ok. 9) Now we need to decide where the result will be send too. Drag a grid-component on the stage and call the grid "my_grid" in the instance name of the component. You can drag multiple of those selection-components on the stage and point them to different output objects. Also the onSelectResult of the map-component will trigger each time a selection is performed. Other action could be taken from this event.
Source code : selection.fla |
|
All source code and components can be used freely by anybody. |