+
@@ -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;
+}