diff --git a/src/views/modules/workSys/mapConfig.vue b/src/views/modules/workSys/mapConfig.vue index cf56913d..a991576b 100644 --- a/src/views/modules/workSys/mapConfig.vue +++ b/src/views/modules/workSys/mapConfig.vue @@ -45,21 +45,25 @@ icon="el-icon-delete" @click="handleSetOffset">设置偏差 --> 经度偏差: - - + + 纬度偏差: - - + + -
+
@@ -541,9 +544,15 @@ const vueGis = { if (element.id_ === this.selAgencyId) { selectedFeatures.push(element) + let polygon = element.getGeometry(); + map.getView().fit(polygon, map.getSize()); + this.zoom = map.getView().getZoom() - 2 + mapView.setZoom(this.zoom); } }); + + }, //设置地图定位的中心点和缩放级别 setMapLocation () { @@ -1038,7 +1047,9 @@ export default vueGis; } .div_back { z-index: 10; - + right: 10px; + top: 1px; + position: absolute; display: flex; } .div_tip { @@ -1054,6 +1065,9 @@ export default vueGis; margin-top: 15px; width: 100%; } +.div_textarea { + text-align: center; +}