Commit 09e958dc authored by 耿迪迪's avatar 耿迪迪

地图拖拽问题修改 gengdidi

parent be2ffc67
......@@ -273,7 +273,13 @@ class gaodeMap {
editWindow.map = map;
marker.on("click", function(e) {
if ("edit" == that.mapOperateType) {
if(editWindow.form.longitude && editWindow.form.latitude){
editWindow.form = e.target.getExtData();
editWindow.form.longitude = marker.getPosition().lng;
editWindow.form.latitude = marker.getPosition().lat;
}else{
editWindow.form = e.target.getExtData();
}
editWindow.show();
} else if ("delete" == that.mapOperateType) {
let diviceType = {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment