|
@@ -560,6 +560,9 @@ export default { |
|
|
maxZoom: 18, //地图放大限制 |
|
|
maxZoom: 18, //地图放大限制 |
|
|
resolution:Math.random() * 0.00000001, |
|
|
resolution:Math.random() * 0.00000001, |
|
|
}), |
|
|
}), |
|
|
|
|
|
interactions: ol.interaction.defaults({ |
|
|
|
|
|
pinchRotate: false // 移动端禁止地图旋转 |
|
|
|
|
|
}), |
|
|
}); |
|
|
}); |
|
|
//view.setResolution(view.getResolution() + Math.random() * 0.00000001);//随机数缩放实现刷新 |
|
|
//view.setResolution(view.getResolution() + Math.random() * 0.00000001);//随机数缩放实现刷新 |
|
|
//获取坐标是否存在 |
|
|
//获取坐标是否存在 |
|
@@ -692,7 +695,7 @@ export default { |
|
|
that.newZb = JSON.stringify(coordinate); |
|
|
that.newZb = JSON.stringify(coordinate); |
|
|
if(coordinate !="" && coordinate !=null){ |
|
|
if(coordinate !="" && coordinate !=null){ |
|
|
//map.addLayer(vector_drawing); |
|
|
//map.addLayer(vector_drawing); |
|
|
map.removeInteraction(draw); |
|
|
|
|
|
|
|
|
that.map.removeInteraction(draw); |
|
|
} |
|
|
} |
|
|
that.closeMoule = coordinate; |
|
|
that.closeMoule = coordinate; |
|
|
that.formSubmit(); |
|
|
that.formSubmit(); |
|
|