ElementLayer support not implemented for native rendering

本文针对ArcGIS WPF环境下使用arcgistuntimewpf添加ElementLayer时出现的错误,提供了两种解决方法。一是通过设置地图控件的UseAcceleratedDisplay属性为False来全局禁用加速显示;二是利用AcceleratedDisplayLayers类,实现仅对特定图层开启加速显示,以优化性能。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

我用的是环境是 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; }

        祝大家成功!

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值