清除source

//清除source
clearsource(id:any){
let kong: any = {
"type": "geojson",
'data': {
'type': 'FeatureCollection',
"features": []
}
}
this.map.value.getSource(id).setData(kong.data)
}
posted @ 2022-12-14 16:18  小林222  阅读(63)  评论(0)    收藏  举报