Browse Source

1

shibei_master
jiangyy 3 years ago
parent
commit
554864d64a
  1. 54
      src/views/modules/workSys/mapConfig.vue

54
src/views/modules/workSys/mapConfig.vue

@ -45,21 +45,25 @@
icon="el-icon-delete"
@click="handleSetOffset">设置偏差</el-button> -->
<span v-if="showBtn&&hasPolygon"> 经度偏差</span>
<el-input v-if="showBtn&&hasPolygon"
resize="none"
size="small"
style="width:100px"
placeholder='请输入经度偏差'
v-model="xOffset">
</el-input>
<el-input-number v-if="showBtn&&hasPolygon"
resize="none"
size="small"
style="width:200px"
:precision="6"
:step="0.00001"
placeholder='请输入经度偏差'
v-model="xOffset">
</el-input-number>
<span v-if="showBtn&&hasPolygon"> 纬度偏差</span>
<el-input v-if="showBtn&&hasPolygon"
resize="none"
size="small"
style="width:100px"
placeholder='请输入维度偏差'
v-model="yOffset">
</el-input>
<el-input-number v-if="showBtn&&hasPolygon"
resize="none"
size="small"
:precision="6"
:step="0.00001"
style="width:200px"
placeholder='请输入维度偏差'
v-model="yOffset">
</el-input-number>
<el-button v-if="showBtn&&hasPolygon"
style="margin-left:10px"
@ -95,12 +99,11 @@
:visible.sync="dialogVisible"
width="50%"
:before-close="handleClose">
<div>
<div class="div_textarea">
<el-input type="textarea"
:autosize="{ minRows: 4, maxRows: 7}"
:rows="5"
resize="none"
style="width:600px"
:autosize="{ minRows: 20, maxRows: 50}"
:rows="20"
style="width:600px;height:500px"
placeholder='请复制坐标数据'
v-model="polygonManullyString">
</el-input>
@ -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;
}
</style>
<style>
.ol-overlaycontainer-stopevent {

Loading…
Cancel
Save