ArcGISDynamicMapServiceLayer not showing until map is moved?

Discussion created by jonathankhoo on Jun 6, 2012
Latest reply on Oct 25, 2012 by gfiske
hi all--

we're having some trouble displaying multple ArcGISDynamicMapServiceLayers from our server (displaying one layer works fine). the lowest layer (the StreetMapLayer in the sample code below) appears, but neither of the two data layers appear until you move the map, either with mouse/touch manipulation, or with PanTo. note that the PanTo solution only works when called from a timer that fires 2 seconds after the initial ExtentChanged event is fired. when i set it for 1 second, it doesn't reliably work all the time.

using two layers from will work just fine, so we are leaning towards something on our server's end(?), as it seems to only happen when showing multiple local services. the Initialized event for the layers always fires; the InitializationFailed never does.

EDIT: we also have this problem when there is a single layer that is cleared and then readded.

        <esri:Map x:Name="MyMap" WrapAround="True" Extent="-15889291.2091837,1169119.54591837,-5870535.20918368,8350931.88265306" ExtentChanged="MyMap_ExtentChanged">
            <esri:ArcGISTiledMapServiceLayer ID="StreetMapLayer" 
            <esri:ArcGISDynamicMapServiceLayer ID="MyLayer1"
                 Url="" />
            <esri:ArcGISDynamicMapServiceLayer ID="MyLayer2"
                 Url=""  />

thanks so much for any help you can offer!