|
|
|
|
|
|
|
|
for (var key in paramVaules) { |
|
|
for (var key in paramVaules) { |
|
|
this.allPointList.push(paramVaules[key]); |
|
|
this.allPointList.push(paramVaules[key]); |
|
|
} |
|
|
} |
|
|
console.log(this.allPointList); |
|
|
|
|
|
}); |
|
|
}); |
|
|
let icon = new Style({ |
|
|
let icon = new Style({ |
|
|
image: new Icon({ |
|
|
image: new Icon({ |
|
|
|
|
|
|
|
|
.then((res) => { |
|
|
.then((res) => { |
|
|
let features = new WMSGetFeatureInfo(res.data).readFeatures(res.data); |
|
|
let features = new WMSGetFeatureInfo(res.data).readFeatures(res.data); |
|
|
adrainage.addFeatures(features); |
|
|
adrainage.addFeatures(features); |
|
|
|
|
|
// console.log(features); |
|
|
}); |
|
|
}); |
|
|
let circle = new Style({ |
|
|
let circle = new Style({ |
|
|
image: new Icon({ |
|
|
image: new Icon({ |
|
|
|
|
|
|
|
|
// 河道无人机影像(3条) |
|
|
// 河道无人机影像(3条) |
|
|
|
|
|
|
|
|
let resolutionsDong = [ |
|
|
let resolutionsDong = [ |
|
|
// 16.933367200067735, |
|
|
|
|
|
|
|
|
16.933367200067735, |
|
|
8.466683600033868, |
|
|
8.466683600033868, |
|
|
4.233341800016934, |
|
|
4.233341800016934, |
|
|
2.116670900008467, |
|
|
2.116670900008467, |
|
|
|
|
|
|
|
|
0.26458386250105836, |
|
|
0.26458386250105836, |
|
|
0.13229193125052918, |
|
|
0.13229193125052918, |
|
|
0.06614596562526459, |
|
|
0.06614596562526459, |
|
|
|
|
|
0.033072982812632296 |
|
|
]; |
|
|
]; |
|
|
let originDong = [-2.00377e7, 3.02411e7]; |
|
|
|
|
|
|
|
|
let originDong = [-2.00377E7, 3.02411E7]; |
|
|
let extentDong = [ |
|
|
let extentDong = [ |
|
|
1.3233063105009157E7, |
|
|
|
|
|
3746053.586611437, |
|
|
|
|
|
1.3237068255289158E7, |
|
|
|
|
|
3751880.902051437, |
|
|
|
|
|
|
|
|
1.3187100930381533E7, |
|
|
|
|
|
3760145.247145829, |
|
|
|
|
|
1.325847541532075E7, |
|
|
|
|
|
3785732.32665234, |
|
|
]; |
|
|
]; |
|
|
let tileGridDong = new TileGrid({ |
|
|
let tileGridDong = new TileGrid({ |
|
|
tileSize: 128, |
|
|
tileSize: 128, |
|
|
|
|
|
|
|
|
crossOrigin: "Anonymous", |
|
|
crossOrigin: "Anonymous", |
|
|
tileUrlFunction: function (coordinate) { |
|
|
tileUrlFunction: function (coordinate) { |
|
|
return ( |
|
|
return ( |
|
|
"http://gisraster.yunhengzhizao.cn:8080/arcgis/rest/services/test/photo/MapServer/tile/" + |
|
|
|
|
|
|
|
|
"http://gisraster.yunhengzhizao.cn:8080/arcgis/rest/services/photos/MapServer/tile/" + |
|
|
coordinate[0] + |
|
|
coordinate[0] + |
|
|
"/" + |
|
|
"/" + |
|
|
coordinate[2] + |
|
|
coordinate[2] + |
|
|
|
|
|
|
|
|
} else { |
|
|
} else { |
|
|
// 表示为排口数据 |
|
|
// 表示为排口数据 |
|
|
this.popupOutlet = properties; |
|
|
this.popupOutlet = properties; |
|
|
|
|
|
console.log(this.popupOutlet); |
|
|
let coordinate = e.mapBrowserEvent.coordinate; |
|
|
let coordinate = e.mapBrowserEvent.coordinate; |
|
|
this.overlayOutlet.setPosition(coordinate); |
|
|
this.overlayOutlet.setPosition(coordinate); |
|
|
this.overlayOutlet.setOffset([140, -10]); |
|
|
this.overlayOutlet.setOffset([140, -10]); |
|
|
|
|
|
|
|
|
background-color: rgb(255, 255, 255); |
|
|
background-color: rgb(255, 255, 255); |
|
|
} |
|
|
} |
|
|
.showPopupOutlet { |
|
|
.showPopupOutlet { |
|
|
width: 2.2rem; |
|
|
|
|
|
height: 3.0rem; |
|
|
|
|
|
|
|
|
width: 2.6rem; |
|
|
|
|
|
/* height: 3.0rem; */ |
|
|
padding: 0.1rem; |
|
|
padding: 0.1rem; |
|
|
background-color: rgb(255, 255, 255); |
|
|
background-color: rgb(255, 255, 255); |
|
|
} |
|
|
} |