vue3实现鼠标定位显示经纬度
leafletMap.on('mousemove', function (e) {
var location = leafletMap.queryRenderedFeatures(e.point);
document.getElementById('location').innerHTML = "<p>" + e.lngLat.lng.toFixed(4) + "," + e.lngLat.lat.toFixed(4) + "</p>";
});