Bläddra i källkod

添加水系

jiexi1_1
YF-yuan 3 år sedan
förälder
incheckning
1cddda178e
8 ändrade filer med 17 tillägg och 4 borttagningar
  1. Binär
      src/assets/img/downsample/outlet_4.jpg
  2. Binär
      src/assets/img/downsample/outlet_5.jpg
  3. Binär
      src/assets/img/downsample/outlet_6.jpg
  4. Binär
      src/assets/img/downsample/outlet_7.jpg
  5. Binär
      src/assets/img/downsample/outlet_8.jpg
  6. Binär
      src/assets/img/downsample/outlet_9.jpg
  7. +1
    -1
      src/config/service.js
  8. +16
    -3
      src/views/Home.vue

Binär
src/assets/img/downsample/outlet_4.jpg Visa fil

Before After
Width: 1000  |  Height: 750  |  Size: 279KB Width: 1000  |  Height: 750  |  Size: 356KB

Binär
src/assets/img/downsample/outlet_5.jpg Visa fil

Before After
Width: 477  |  Height: 379  |  Size: 74KB Width: 1000  |  Height: 750  |  Size: 279KB

Binär
src/assets/img/downsample/outlet_6.jpg Visa fil

Before After
Width: 1000  |  Height: 750  |  Size: 356KB Width: 1000  |  Height: 750  |  Size: 280KB

Binär
src/assets/img/downsample/outlet_7.jpg Visa fil

Before After
Width: 1000  |  Height: 750  |  Size: 280KB Width: 1000  |  Height: 750  |  Size: 378KB

Binär
src/assets/img/downsample/outlet_8.jpg Visa fil

Before After
Width: 1000  |  Height: 750  |  Size: 378KB Width: 1000  |  Height: 750  |  Size: 317KB

Binär
src/assets/img/downsample/outlet_9.jpg Visa fil

Before After
Width: 1000  |  Height: 750  |  Size: 317KB Width: 477  |  Height: 379  |  Size: 74KB

+ 1
- 1
src/config/service.js Visa fil

@@ -1,5 +1,5 @@
export default {
'tms':"http://121.4.38.11:6080/arcgis/rest/services/demo/photo/MapServer",
'wfs':'http://gisvector.yunhengzhizao.cn:8080/geoserver/demo/wms',
"ImageArcGIS":"http://e9r5x7df.dongtaiyuming.net/arcgis/rest/services/demo/rrr/MapServer"
"ImageArcGIS":"http://gisraster.yunhengzhizao.cn:8080/arcgis/rest/services/demo/zones/MapServer"
}

+ 16
- 3
src/views/Home.vue Visa fil

@@ -326,6 +326,8 @@ export default {
place: null, // 土地利用图层
adrainageLayer: null, // 排口图层
tileNoman: null,
riverlayer: null, // 水系图层
arealayer: null, // 行政区划
river: "river2",
landColorList: [],
landColor: null,
@@ -473,6 +475,7 @@ export default {
});
},
mounted() {
// 南京市水系图
getService("wfs", {
// filter: equalToFilter("admincode", "320100"),
@@ -485,7 +488,8 @@ export default {
opacity: 0.8
}).then((res) => {
let { layer } = res;
this.map.addLayer(layer);
this.riverlayer = layer
this.map.addLayer(this.riverlayer);
});
// 排口数据
let adrainage = new VectorSource({});
@@ -694,6 +698,13 @@ export default {
view: this.view,
});

// 江宁区行政区划
getService('ImageArcGIS', { layers: "0" }).then((res) => {
let { layer } = res;
let arealayer = layer
this.map.addLayer(arealayer);
});

// 切换底图 与无人机影像的叠加
let changeMap = document.getElementById("changeMap");
changeMap.addEventListener("click", (event) => {
@@ -805,7 +816,6 @@ export default {

if (properties.geom instanceof MultiPolygon) {
this.popupPlace = properties;
console.log(this.popupPlace);
let coordinate = e.mapBrowserEvent.coordinate;
this.overlayPlace.setPosition(coordinate);
this.overlayPlace.setOffset([140, -10]);
@@ -844,6 +854,8 @@ export default {
// 菜单按钮
// 选择采样点、土地
selectRef($event, $index, index) {
// 关闭水系图
this.map.removeLayer(this.riverlayer)
// 显示图层以及处理相应的数据
// 1-1 排口显示
if ($index == 0) {
@@ -922,6 +934,8 @@ export default {

// 选择反演参数
selectParams(type, id, index, $index) {
// 关闭水系图
this.map.removeLayer(this.riverlayer)
// 1.显示四参数的图层并展示对应的图层
this.tileDong.setVisible(true);
this.sourceDong4.updateParams({ layers: "show:" + id });
@@ -944,7 +958,6 @@ export default {
// 初始化this.colorList 东风河
// 1.根据所选河道变换对应的位置以及缩放信息
// 设置当前河道值为index
console.log(index);
this.checkedRiver = parseInt(index.slice(0, 1));

if (this.checkedRiver == 0) {

Laddar…
Avbryt
Spara