// listData为接口请求返回的列表数据(需要包含起点、终点坐标或者起点、终点经纬度的数据),
// layerId:自己定义的一个字符串作为图层的id值
addDefecLinetLayer(listData, layerId) {
if (!layerId) {
layerId = this.layerId
}
this.defectLayer = new this.$esri.GraphicsLayer({
id: layerId,
name: '缺陷图层',
graphics: [],
visible: true //该属性控制该图层的显示与隐藏
})
this.defectLayer.removeAll()
ArcGIS实现在地图上绘制线图层
最新推荐文章于 2023-05-12 17:14:53 发布