根据经纬度标记地图上的点
//清除marker
if (this.marker) {
this.$refs.map.map.removeLayer(this.marker);
}
//地图添加点
this.marker = L.marker([lat, lon], {}).addTo(this.$refs.map.map);
this.$refs.map.flyTo(lon, lat);
this.marker
...
原创
2021-12-01 17:55:47 ·
640 阅读 ·
0 评论