Compare commits
2 Commits
203305ece3
...
a583794cc5
Author | SHA1 | Date |
---|---|---|
姚宇浩 | a583794cc5 | |
姚宇浩 | 79e93bba99 |
|
@ -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 = () => {
|
||||
|
|
Loading…
Reference in New Issue