//清除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.bindPopup("详细信息:</br>地点:" +
(res.hits.hits.length
? res.hits.hits[0]._source.text
: "未查到该地址信息") +
"</br>lat:" +
lat +
"</br>lon:" +
lon
)
.openPopup();