Compare commits

...

2 Commits

Author SHA1 Message Date
姚宇浩 a583794cc5 Merge branch 'main' of https://git.cityme.com.cn/xiangshan/ggfwjsc 2024-08-19 17:03:20 +08:00
姚宇浩 79e93bba99 11 2024-08-19 17:03:12 +08:00
1 changed files with 9 additions and 0 deletions

View File

@ -803,6 +803,15 @@ const initMap = () => {
//
addJd();
};
function mercatorToLngLat(mercator) {
var x = mercator.lng / 20037508.34 * 180;
var y = mercator.lat / 20037508.34 * 180;
y = 180 / Math.PI * (2 * Math.atan(Math.exp(y * Math.PI / 180)) - Math.PI / 2);
return {
lng: x,
lat: y
};
}
//
const openEdit = () => {