浏览代码

地图优化

wulanhaote
hbao 3 年前
父节点
当前提交
407c36bb80
共有 1 个文件被更改,包括 4 次插入1 次删除
  1. +4
    -1
      src/components/Map/MapGisDrawing.vue

+ 4
- 1
src/components/Map/MapGisDrawing.vue 查看文件

@@ -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();


正在加载...
取消
保存