|
|
@@ -475,14 +475,14 @@ export default { |
|
|
|
}); |
|
|
|
}, |
|
|
|
mounted() { |
|
|
|
|
|
|
|
|
|
|
|
// 南京市水系图 |
|
|
|
getService("wfs", { |
|
|
|
// filter: equalToFilter("admincode", "320100"), |
|
|
|
layers: ["rivers"], |
|
|
|
style: new Style({ |
|
|
|
fill: new Stroke({ |
|
|
|
color: "#2495A2", |
|
|
|
color: "#AEDCFD", |
|
|
|
}), |
|
|
|
}), |
|
|
|
opacity: 0.8 |
|
|
@@ -595,6 +595,7 @@ export default { |
|
|
|
|
|
|
|
// 加载切片服务 |
|
|
|
// 河道无人机影像(3条) |
|
|
|
|
|
|
|
let resolutionsDong = [ |
|
|
|
16.933367200067735, |
|
|
|
8.466683600033868, |
|
|
@@ -672,8 +673,8 @@ export default { |
|
|
|
this.view = new View({ |
|
|
|
// minZoom: 11, |
|
|
|
maxZoom: 18.9, |
|
|
|
zoom: 9.5, |
|
|
|
center: transform([118.89744, 31.889104], "EPSG:4326", "EPSG:3857"), |
|
|
|
zoom: 11, |
|
|
|
center: transform([118.834447,31.895676], "EPSG:4326", "EPSG:3857"), |
|
|
|
}); |
|
|
|
this.map = new OMap({ |
|
|
|
controls: control |
|
|
@@ -698,8 +699,8 @@ export default { |
|
|
|
view: this.view, |
|
|
|
}); |
|
|
|
|
|
|
|
// 江宁区行政区划 |
|
|
|
getService('ImageArcGIS', { layers: "*" }).then((res) => { |
|
|
|
// 江宁区行政区划 |
|
|
|
getService('ImageArcGIS', { layers: '0' }).then((res) => { |
|
|
|
let { layer } = res; |
|
|
|
this.arealayer = layer |
|
|
|
this.map.addLayer(this.arealayer); |