Dear ,
how can turn off (checkbox) all layers by layer list widget , and allows end users to turn on layers which want to display them .?
you can see link on the bellow and attached , the same idea what I want it .
many thanks
Reagrds,
Mohammed
Solved! Go to Solution.
Mohammed,
To have every checkbox un-ticked you have to do a combination of two things.
First off all ensure all your layers are turned off (un-checked) in your mxd when you publish your service.
Then in the main config file for your flex viewer when you add the layer, make sure you have visible set to false:
<layer label="Streets"
type="tiled"
visible="false"
url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"/>
Regards
Anthony
Mohammed,
To have every checkbox un-ticked you have to do a combination of two things.
First off all ensure all your layers are turned off (un-checked) in your mxd when you publish your service.
Then in the main config file for your flex viewer when you add the layer, make sure you have visible set to false:
<layer label="Streets"
type="tiled"
visible="false"
url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"/>
Regards
Anthony
Many Thanks Authony Giles for helping