ccposton

Trouble adding a LocalDynamicMapServiceLayer to an empty map

Discussion created by ccposton on Mar 18, 2013
Latest reply on Mar 19, 2013 by ccposton
Using the example found here:
http://www.arcgis.com/home/item.html?id=953a530ada30477d95cc69e788268bc9

I am able to add a shapefile via a LocalDynamicMapServiceLayer. The map in the example is defined as follows:

<esri:Map x:Name="_map" UseAcceleratedDisplay="False">
            <!-- ArcGIS Online Tiled Basemap Layer -->
            <esri:ArcGISTiledMapServiceLayer ID="World Topographic Basemap (3857)" x:Name="_worldTopographicBasemap" 
                       Url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer"/>  
        </esri:Map>


If I remove the ArcGISTiledMapServiceLayer above the sample no longer works. I am not able to see the LocalDynamicMapServiceLayer that I add when starting with an empty map. Why is this?

Note: If I create a FeatureLayer from my LocalDynamicMapServiceLayer and add that to the map prior to adding my LocalDynamicMapServiceLayer then the LocalDynamicMapServiceLayer seems to show up. Very strange.

Outcomes