L.supermap.plotting.editControl与L.supermap.plotting.movingTargetLayer这两个可以同时使用吗?我这样使用属性取消选中后会出现问题,填充的渐变色会变成黑色,选中上又会恢复正常了。moving TargetLayer改成其他图层名就没问题了。
let plotLayer = esMap2D.Layer2DManager.addLayer( cmapp.ShareMap.EsMapConstants.LAYER_TYPE_2D.PLOTTING, { layerName: "标绘图层" }, { options: { type: "layer", }, } ); esMap2D.Layer2DManager.setDrawingLayer(plotLayer); esMap2D.EditControl = L.supermap.plotting.editControl(); esMap2D.EditControl.addTo(esMap2D); esMap2D.movingTarget = L.supermap.plotting.movingTargetLayer("标绘图层", EsMapURL.SuperMapService.plotUrl); esMap2D.movingTarget.addTo(esMap2D);