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
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"<BR /> type="tiled"<BR /> visible="false"<BR /><SPAN> url="</SPAN><A class="jive-link-external-small" href="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer" rel="nofollow noopener noreferrer" target="_blank">http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer</A><SPAN>"/></SPAN>
Regards
Anthony
Many Thanks Authony Giles for helping
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.