Browse Source

地图优化

wulanhaote
hbao 3 years ago
parent
commit
407c36bb80
1 changed files with 4 additions and 1 deletions
  1. +4
    -1
      src/components/Map/MapGisDrawing.vue

+ 4
- 1
src/components/Map/MapGisDrawing.vue View File

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


Loading…
Cancel
Save