ElementLayer support not implemented for native rendering

我用的是环境是 arcgis wpf 10.2.5 + VS2015

arcgis tuntime wpf 添加ElementLayer时报错:

ElementLayer support not implemented for native rendering. Layer ID:

网友的解决办法1

设置地图控件的UseAcceleratedDisplay="False",可以解决,详细链接如下:

https://www.cnblogs.com/KevinJasmine/p/5454052.html

网友的解决办法2

方法1是完全关闭了AcceleratedDisplay,如果想有些图层保留该特性,则可以按照如下方法:

https://community.esri.com/thread/66999

就是新建一个AcceleratedDisplayLayers,然后把对应的图层加进去,再添加进map,这样该图层就拥有AcceleratedDisplay特性。

 AcceleratedDisplayLayers layers = new AcceleratedDisplayLayers();
 layers.ChildLayers.Add(_measureLayer);
 _map.Layers.Add(layers);

这样设置后图层_measureLayer就带了AcceleratedDisplay特性。

而map的属性UseAcceleratedDisplay注释也说明了这点,

//
        // 摘要:
        //     Gets or sets a value indicating whether to use the accelerated display pipeline
        //     for all layers in the map.
        //
        // 备注:
        //     This enables using the accelerated display for all layers in the map. If you
       
//     only want to have some layers use the accelerated display, use the ESRI.ArcGIS.Client.AcceleratedDisplayLayers
       
//     Group Layer.
        //     In order to use accelerated display, the ArcGIS Runtime must be ESRI.ArcGIS.Client.ArcGISRuntime.SetLicense(System.String,System.String[])
        //     and ESRI.ArcGIS.Client.ArcGISRuntime.Initialize prior to loading the map.
        public bool UseAcceleratedDisplay { get; set; }

        祝大家成功!

 

你可能感兴趣的:(GIS,ArcGIS)