Select to view content in your preferred language

Cached Operational Layers don't show when basemap switched.

2555
6
05-13-2011 07:49 AM
JeffBurton
Deactivated User
I've set up the viewer with a number of basemaps, one png cached tile map and the rest jpg tiled maps (orthos of various years).

When I switch from the 'normal' map to any of the orthos, the operational layer disappears, (or seems to be drawn BELOW the basemap).
The layer is still there (I can click on the 'invisible' features and get a popup).

Any idea what is going on? This doesn't seem to happen when using dynamic map service as operational layer.
Tags (2)
0 Kudos
6 Replies
BjornSvensson
Esri Regular Contributor
What does the <map> section of your config file look like?
0 Kudos
JeffBurton
Deactivated User
like so:


<map initialextent="481938 5456922 482101 5457010"
                fullextent="-481373 5454275 5454275 5454275" top="40" wkid="26910"
                esrilogovisible="false">
                <basemaps>
                        <layer label="Base" type="tiled" visible="true"
                                url="http://url/ArcGIS/rest/services/BaseMaps/BaseMap/MapServer">
                                <sublayer id="3" popupconfig="popups/PopUp_Buildings.xml"/>
                                <sublayer id="10" popupconfig="popups/PopUp_Trees.xml"/>
                        </layer>
                        <layer label="Ortho 2009" type="tiled" visible="false"
                                url="http://url/ArcGIS/rest/services/BaseMaps/2009Ortho/MapServer"/>
                        <layer label="Ortho 2008" type="tiled" visible="false" alpha="0.7"
                                url="http://url/ArcGIS/rest/services/BaseMaps/2008Ortho/MapServer"/>
                        <layer label="Ortho 2006" type="tiled" visible="false"
                                url="http://url/ArcGIS/rest/services/BaseMaps/2006Ortho/MapServer"/>
                        <layer label="Ortho 2004" type="tiled" visible="false"
                                url="http://url/ArcGIS/rest/services/BaseMaps/2004Ortho/MapServer"
                        />
                </basemaps>
                <operationallayers>
                        <layer label="Water System" type="tiled" visible="false"
                                url="http://url/ArcGIS/rest/services/UndergroundServices/WaterTile/MapServer">
                                <sublayer id="18" popupconfig="popups/PopUp_Hydrants.xml"/>
                                <sublayer id="11" popupconfig="popups/PopUp_Watermain.xml"/>
                        </layer>
              
                </operationallayers>
        </map>
0 Kudos
JeffBurton
Deactivated User
Do you have any thoughts?

Since then I've added more layers.

What happens is the first listed operation layer draws above the first base layer, but below all other base layers. Any operational layers beyond the first work as expected. This is pretty strange behaviour.
0 Kudos
JeffBurton
Deactivated User
Any Clues?

I'm on Flex Viewer 2.5 now, still having the same issue, and a google search brings me to my own forum post....
0 Kudos
KenCarrier
Deactivated User
I am having the same issue but my services are dynamic, did you ever find a resolution for this?
0 Kudos
JeffBurton
Deactivated User
In my case I think my issue was related to using PNG32 vs PNG8 for the cached tiles. The latter would not show over the jpg based orthos.
0 Kudos