mirror of
https://gitee.com/zongzhige/shopxo.git
synced 2024-11-29 18:39:16 +08:00
去除编辑器中地图展示标记可拖拽
This commit is contained in:
parent
367504e170
commit
481b639fd5
@ -127,6 +127,7 @@
|
||||
map.addControl(new BMap.NavigationControl());
|
||||
map.centerAndZoom(point, 10); // 初始化地图,设置中心点坐标和地图级别。
|
||||
}
|
||||
marker.enableDragging();
|
||||
map.addOverlay(marker);
|
||||
}
|
||||
init();
|
||||
|
@ -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") { //在编辑状态下
|
||||
|
Loading…
Reference in New Issue
Block a user