AnsweredAssumed Answered

Can't add ElementLayer when UsAcceleratedDisplay=True, 10.1.1

Question asked by bigbear8888 on Jan 24, 2013
Latest reply on Jan 25, 2013 by bigbear8888
When in Accelerated Display Mode, an Element Layer can't be added, even outside the AcceleratedDisplayLayers Group.  GraphicsLayers can be added correctly.  According to the release notes, it should be allowed to be added outside the AcceleratedDisplayLayers Group

Code posted below exception

NotImplemented Exception

ElementLayer support not implemented for native rendering. Layer ID: Elements

   at ESRI.ArcGIS.Client.Runtime.NativeLayer.Create(Layer layer, RequestQueue queue)
   at ESRI.ArcGIS.Client.NativeMap.AddLayer(Int32 index, Layer layer)
   at ESRI.ArcGIS.Client.DrawingSurface.AddLayer(Int32 index, Layer layer)
   at ESRI.ArcGIS.Client.DrawingSurface.FindIndexAndAddLayer(Layer layer, IList`1 collection)
   at ESRI.ArcGIS.Client.Map.TryAddLayerToDrawSurface(Layer layer)
   at ESRI.ArcGIS.Client.Map.layer_Initialized(Object sender, EventArgs e)
   at System.EventHandler`1.Invoke(Object sender, TEventArgs e)
   at ESRI.ArcGIS.Client.Layer.OnInitialized(EventArgs e)
   at ESRI.ArcGIS.Client.Layer.Initialize()
   at ESRI.ArcGIS.Client.Map.OnApplyTemplate()
   at System.Windows.FrameworkElement.ApplyTemplate()


<Window x:Class="ESRI_10._1._1_Test.MainWindow"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
          xmlns:esri="http://schemas.esri.com/arcgis/client/2009"
        Title="MainWindow" Height="800" Width="1000" Loaded="Window_Loaded_1">
    <Grid>
       
        <esri:Map UseAcceleratedDisplay="True" x:Name="MyMap">
            <esri:AcceleratedDisplayLayers >
                <esri:ArcGISTiledMapServiceLayer ID="World Topo Map"
                    Url="http://services.arcgisonline.com/ArcGIS/rest/services/World_Topo_Map/MapServer"/>
            </esri:AcceleratedDisplayLayers>
            <esri:ElementLayer ID="Elements"></esri:ElementLayer>
            <esri:GraphicsLayer ID="Graphics"></esri:GraphicsLayer>
        </esri:Map>
    </Grid>
</Window>

Outcomes