|
|
@@ -280,7 +280,7 @@ export default { |
|
|
|
{ type: "cod", value: 1, name: "高锰酸盐指数", cf: "COD_Mn" }, |
|
|
|
{ type: "tn", value: 2, name: "总氮", cf: "TN" }, |
|
|
|
{ type: "tp", value: 3, name: "总磷", cf: "TP" }, |
|
|
|
{ type: "nh4_n", value: 4, name: "氨氮", cf: "NH4_N" }, |
|
|
|
{ type: "nh4_n", value: 4, name: "氨氮", cf: "NH4_N" } |
|
|
|
], |
|
|
|
}, |
|
|
|
{ |
|
|
@@ -290,7 +290,7 @@ export default { |
|
|
|
{ type: "cod", value: 6, name: "高锰酸盐指数", cf: "COD_Mn" }, |
|
|
|
{ type: "tn", value: 7, name: "总氮", cf: "TN" }, |
|
|
|
{ type: "tp", value: 8, name: "总磷", cf: "TP" }, |
|
|
|
{ type: "nh4_n", value: 9, name: "氨氮", cf: "NH4_N" }, |
|
|
|
{ type: "nh4_n", value: 9, name: "氨氮", cf: "NH4_N" } |
|
|
|
], |
|
|
|
}, |
|
|
|
{ |
|
|
@@ -300,7 +300,7 @@ export default { |
|
|
|
{ type: "cod", value: 11, name: "高锰酸盐指数", cf: "COD_Mn" }, |
|
|
|
{ type: "tn", value: 12, name: "总氮", cf: "TN" }, |
|
|
|
{ type: "tp", value: 13, name: "总磷", cf: "TP" }, |
|
|
|
{ type: "nh4_n", value: 14, name: "氨氮", cf: "NH4_N" }, |
|
|
|
{ type: "nh4_n", value: 14, name: "氨氮", cf: "NH4_N" } |
|
|
|
], |
|
|
|
}, |
|
|
|
], |
|
|
@@ -332,7 +332,7 @@ export default { |
|
|
|
river: "river2", |
|
|
|
landColorList: [], |
|
|
|
landColor: null, |
|
|
|
center: [116.632997, 30.113954], |
|
|
|
center: [118.89544, 31.884104], |
|
|
|
zoom: 12, |
|
|
|
select: null, // 覆盖框overlay选中 |
|
|
|
pointActiveIcon: null, // 选中采样点样式 |
|
|
@@ -635,14 +635,13 @@ export default { |
|
|
|
visible: false, |
|
|
|
}); |
|
|
|
|
|
|
|
// 底图 |
|
|
|
let google = new TileLayer({ |
|
|
|
projection: "EPSG:4326", |
|
|
|
title: "谷歌地图服务", |
|
|
|
source: new XYZ({ |
|
|
|
url: "http://mt1.google.cn/vt/lyrs=s&x={x}&y={y}&z={z}", |
|
|
|
}), |
|
|
|
visible: true, |
|
|
|
// 底图 |
|
|
|
let google = new TileLayer({ |
|
|
|
title: "天地图卫星影像", |
|
|
|
source: new XYZ({ |
|
|
|
url: 'http://t3.tianditu.com/DataServer?T=img_w&x={x}&y={y}&l={z}&tk=f82bb2fd8115c7fb576a8b2fcf738523' |
|
|
|
}), |
|
|
|
visible: true |
|
|
|
}); |
|
|
|
let osm = new TileLayer({ |
|
|
|
source: new OSM(), |
|
|
@@ -653,8 +652,8 @@ export default { |
|
|
|
this.view = new View({ |
|
|
|
// minZoom: 11, |
|
|
|
maxZoom: 19, |
|
|
|
zoom: 17, |
|
|
|
center: transform([118.803623, 31.998328], "EPSG:4326", "EPSG:3857"), |
|
|
|
zoom: 15, |
|
|
|
center: transform([118.89544, 31.884104], "EPSG:4326", "EPSG:3857"), |
|
|
|
}); |
|
|
|
this.map = new OMap({ |
|
|
|
controls: control |
|
|
@@ -779,6 +778,7 @@ export default { |
|
|
|
} else { |
|
|
|
// 表示为排口数据 |
|
|
|
this.popupOutlet = properties; |
|
|
|
console.log(this.popupOutlet); |
|
|
|
let coordinate = e.mapBrowserEvent.coordinate; |
|
|
|
this.overlayOutlet.setPosition(coordinate); |
|
|
|
this.overlayOutlet.setOffset([140, -10]); |
|
|
@@ -927,8 +927,10 @@ export default { |
|
|
|
// 初始化this.colorList 东风河 |
|
|
|
// 1.根据所选河道变换对应的位置以及缩放信息 |
|
|
|
// 设置当前河道值为index |
|
|
|
console.log(index); |
|
|
|
this.checkedRiver = parseInt(index.slice(0, 1)); |
|
|
|
if (index == 0) { |
|
|
|
|
|
|
|
if (this.checkedRiver == 0) { |
|
|
|
this.view.animate( |
|
|
|
{ zoom: 15 }, |
|
|
|
{ |
|
|
@@ -936,7 +938,7 @@ export default { |
|
|
|
} |
|
|
|
); |
|
|
|
} |
|
|
|
if (index == 1) { |
|
|
|
if (this.checkedRiver == 1) { |
|
|
|
this.view.animate( |
|
|
|
{ |
|
|
|
center: transform( |
|
|
@@ -948,7 +950,7 @@ export default { |
|
|
|
{ zoom: 17 } |
|
|
|
); |
|
|
|
} |
|
|
|
if (index == 2) { |
|
|
|
if (this.checkedRiver == 2) { |
|
|
|
this.view.animate( |
|
|
|
{ zoom: 15 }, |
|
|
|
{ |
|
|
@@ -1313,7 +1315,7 @@ body { |
|
|
|
} |
|
|
|
.showPopupOutlet { |
|
|
|
width: 2.2rem; |
|
|
|
height: 2.5rem; |
|
|
|
height: 3.0rem; |
|
|
|
padding: 0.1rem; |
|
|
|
background-color: rgb(255, 255, 255); |
|
|
|
} |