This commit is contained in:
parent
c47aea47fe
commit
79e93bba99
|
@ -803,6 +803,15 @@ const initMap = () => {
|
||||||
//添加街道名
|
//添加街道名
|
||||||
addJd();
|
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 = () => {
|
const openEdit = () => {
|
||||||
|
|
Loading…
Reference in New Issue