Just curious if anyone has a solution to my issue. I'm making a Wards map for my city and I'm trying to do it using 2 different sets of Wards; Wards_Top (35% transparency, turns off at 20,001) and Wards_Bottom (80% transparency, turns on at 20,000). For each Ward I have a separate popup config. When I try running this as a dynamic service with a definition in the <sublayer>, it will only read the first definition and not the others (example, when I open the map, only Ward 4 shows, none of the others). Anyone have a suggestions besides coding in the layers 4 times? I'd like to keep the TOC and legend uncluttered and make the whole layer on/off able.
Here's an example of the code:
<layer label="Wards" type ="dynamic" visible="true" alpha="0.65"
url="https://gis.cityofthornton.net/arcgis/rest/services/Webmaps/Wards_Top/MapServer">
<sublayer id="0" definitionexpression="WARD = 1" popupconfig="popups/PopUp_Ward1.xml"/>
<sublayer id="0" definitionexpression="WARD = 2" popupconfig="popups/PopUp_Ward2.xml"/>
<sublayer id="0" definitionexpression="WARD = 3" popupconfig="popups/PopUp_Ward3.xml"/>
<sublayer id="0" definitionexpression="WARD = 4" popupconfig="popups/PopUp_Ward4.xml"/>
</layer>
<layer label="Wards" type ="dynamic" visible="true" alpha="0.20"
url="https://gis.cityofthornton.net/arcgis/rest/services/Webmaps/Wards_Bottom/MapServer">
<sublayer id="0" definitionexpression="WARD = 1" popupconfig="popups/PopUp_Ward1.xml"/>
<sublayer id="0" definitionexpression="WARD = 2" popupconfig="popups/PopUp_Ward2.xml"/>
<sublayer id="0" definitionexpression="WARD = 3" popupconfig="popups/PopUp_Ward3.xml"/>
<sublayer id="0" definitionexpression="WARD = 4" popupconfig="popups/PopUp_Ward4.xml"/>
</layer>
Here's an example of the code:
<layer label="Wards" type ="dynamic" visible="true" alpha="0.65"
url="https://gis.cityofthornton.net/arcgis/rest/services/Webmaps/Wards_Top/MapServer">
<sublayer id="0" definitionexpression="WARD = 1" popupconfig="popups/PopUp_Ward1.xml"/>
<sublayer id="0" definitionexpression="WARD = 2" popupconfig="popups/PopUp_Ward2.xml"/>
<sublayer id="0" definitionexpression="WARD = 3" popupconfig="popups/PopUp_Ward3.xml"/>
<sublayer id="0" definitionexpression="WARD = 4" popupconfig="popups/PopUp_Ward4.xml"/>
</layer>
<layer label="Wards" type ="dynamic" visible="true" alpha="0.20"
url="https://gis.cityofthornton.net/arcgis/rest/services/Webmaps/Wards_Bottom/MapServer">
<sublayer id="0" definitionexpression="WARD = 1" popupconfig="popups/PopUp_Ward1.xml"/>
<sublayer id="0" definitionexpression="WARD = 2" popupconfig="popups/PopUp_Ward2.xml"/>
<sublayer id="0" definitionexpression="WARD = 3" popupconfig="popups/PopUp_Ward3.xml"/>
<sublayer id="0" definitionexpression="WARD = 4" popupconfig="popups/PopUp_Ward4.xml"/>
</layer>