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.
Why are all your sublayer ids zero?.. Sublayer are for setting certain properties like popups for specific sublayers in a map service based in the id number corresponding with the sublayer id of the map service.
Within my map service, the id for the wards layer is "0". My understanding was that I needed to use "0" since it's a dynamic service, and a sublayer id="0" is going to call the layer with an id of 0.
okay so the best way around this would be to republish the service with a separate layer showing each ward (using a definition query) in the .mxd (Ward 1, Ward 2 etc). Then when doing the sublayers, call each sublayer by the new id number?