去除编辑器中地图展示标记可拖拽

This commit is contained in:
devil 2020-02-17 10:10:39 +08:00
parent 367504e170
commit 481b639fd5
2 changed files with 1 additions and 1 deletions

View File

@ -127,6 +127,7 @@
map.addControl(new BMap.NavigationControl());
map.centerAndZoom(point, 10); // 初始化地图,设置中心点坐标和地图级别。
}
marker.enableDragging();
map.addOverlay(marker);
}
init();

View File

@ -51,7 +51,6 @@
var markersArr = markersParam.split(',');
var point = new BMap.Point(markersArr[0], markersArr[1]);
marker = new BMap.Marker(point);
marker.enableDragging();
map.addOverlay(marker); // 将标注添加到地图中
if(parent.editor && parent.document.body.contentEditable=="true") { //在编辑状态下