|
@@ -147,14 +147,18 @@ export default {
|
|
|
methods: {
|
|
|
tableClick(row) {
|
|
|
let url = this.newObj.proxypath + row.hsxtif;
|
|
|
+ let urlQsx = this.newObj.proxypath + row.qsxtif;
|
|
|
+ let urlHsx = this.newObj.proxypath + row.hsxtif;
|
|
|
this.$refs.MapView.createMap("split");
|
|
|
this.nowId = row.hsxtif;
|
|
|
- console.log(row, "-----", url);
|
|
|
+ this.addLayer("mapCon1", urlQsx);
|
|
|
+ this.addLayer("mapCon2", urlHsx);
|
|
|
+ },
|
|
|
+ addLayer(name, url) {
|
|
|
const source = new GeoTIFF({
|
|
|
sources: [
|
|
|
{
|
|
|
- // url: url,
|
|
|
- url: "http://192.168.60.4:9201/spotfile/64018120240902/DDOM/6401812024070108270001DDOM.tif",
|
|
|
+ url,
|
|
|
nodata: 0,
|
|
|
imageExtent: [38.207187, 106.672957, 38.21268, 106.67845],
|
|
|
projection: "EPSG:4326",
|
|
@@ -164,19 +168,7 @@ export default {
|
|
|
const layer = new WebGLTile({
|
|
|
source: source,
|
|
|
});
|
|
|
-
|
|
|
- // var layer = new ImageLayer({
|
|
|
- // source: new ImageStatic({
|
|
|
- // // url: 'path/to/your.tif',
|
|
|
- // url: 'http://192.168.60.4:9201/spotfile/64018120240902/DDOM/6401812024070108270001DDOM.tif',
|
|
|
- // // imageExtent: [minX, minY, maxX, maxY],
|
|
|
- // imageExtent: [38.207187, 106.672957, 38.212680,106.678450, ],
|
|
|
- // projection: 'EPSG:4326'
|
|
|
- // })
|
|
|
- // });
|
|
|
- window.map["mapDiv"].addLayer(layer);
|
|
|
- // window.map["mapCon1"].addLayer(layer);
|
|
|
- // window.map["mapCon2"].addLayer(layer);
|
|
|
+ window.map[name].addLayer(layer);
|
|
|
},
|
|
|
getList() {
|
|
|
listPcsjXQList(this.queryParams).then((response) => {
|