Anyone know if you can use URL parameters to turn on layers. I have had success using URL parameters to go to specific coordinates.
|
|
No, the compiled version of ArcGIS Viewer for Flex does not directly support using URL parameters to turn on/off layers. However, you can use URL parameters to point the application to different configuration files, and inside the configuration files you can specify particular map services, layers, etc. http://help.arcgis.com/en/webapps/flexviewer/help/index.html#/Main_configuration_file/01m300000018000000/ To set the visibility for specific layers within a mapservice (overriding the map service visibilities), use the visiblelayers property on the layer tag. For example:
http://help.arcgis.com/en/webapps/flexviewer/help/index.html#//01m30000000p000000.htm |
|||||||||||
|
|
I think you'd need to add a group layer of lots of layers in the map service, then turn them on and off. However, this approach, I think, means all child layers will be turned on when it is loaded as default? Using the link above, you could choose to use the TOC or implement the layer changes otherwise. I think this is what you need isn't it? |
||||
|
|
|
If so then my layer urls look like this...
Or Maybe this is the answer you are looking for... |
|||||||||||
|