Select to view content in your preferred language

Tiled Layers Not Displaying As Expected

535
0
12-12-2011 08:37 AM
JustinMunsters
Emerging Contributor
You'll have to forgive my inexperience here, both with the forums and ESRI products in general.  I am hoping this post lands in the correct forum.  That said...

Working with the Silverlight API, I am utilizing two specific layers I've displayed below as test code.  I have a 'basemap' layer and an 'overlay' layer.  The later I plan on allowing for a dynamic transparency through a control targeting the opacity property.

When I set up the layers in the simple XAML example as listed below, I notice in Fiddler both the basemap and the overlay layer get their json, but tiles for the later declared are not returned. 

        <esri:Map x:Name="MyMap" SnapToLevels="True" Background="White" Extent="12589861.5047889, 452193.576650939, 12776710.8368209, 634919.636547503" >
            <esri:ArcGISTiledMapServiceLayer ID="layerBase" Url="http://www.gis.co.ottawa.mi.us/GISWEB/rest/services/BaseLayerGrey/MapServer" />
            <esri:ArcGISTiledMapServiceLayer ID="layerHillshade" Opacity=".50" Url="http://www.gis.co.ottawa.mi.us/GISWEB/rest/services/SL_HillShade/MapServer"/>
        </esri:Map>


When I reverse the order of the layers in the XAML (overlay first) I notice the basemap makes the json call, but returns no tiles.

    <esri:Map x:Name="MyMap" SnapToLevels="True" Background="White" Extent="12589861.5047889, 452193.576650939, 12776710.8368209, 634919.636547503" >
        <esri:ArcGISTiledMapServiceLayer ID="layerHillshade" Opacity=".50" Url="http://www.gis.co.ottawa.mi.us/GISWEB/rest/services/SL_HillShade/MapServer"/>
        <esri:ArcGISTiledMapServiceLayer ID="layerBase" Url="http://www.gis.co.ottawa.mi.us/GISWEB/rest/services/BaseLayerGrey/MapServer" />
    </esri:Map>


Both layers will work properly independently of the other, but fail to display properly when combined.  I was curious how I should debug this further or if there is just a simple answer to this.  Thanks to all that respond in advance.
0 Kudos
0 Replies