|
@@ -92,7 +92,7 @@ export default {
|
|
|
closeInster() {
|
|
|
this.onClick(-1);
|
|
|
removeGeoJSON("fpdb");
|
|
|
- this.nolayer = this.layersData[0].year;
|
|
|
+
|
|
|
this.$emit("close");
|
|
|
},
|
|
|
show(data) {
|
|
@@ -128,14 +128,16 @@ export default {
|
|
|
setImageryRoller(layer);
|
|
|
});
|
|
|
} else {
|
|
|
- hideImageryRoller(this.imagelayers[this.nolayer]);
|
|
|
- useRoller(false);
|
|
|
+ // hideImageryRoller(this.imagelayers[this.nolayer]);
|
|
|
+ // useRoller(false);
|
|
|
}
|
|
|
this.multiView();
|
|
|
if (i == 2) {
|
|
|
this.$refs.aside.activeVal == 0;
|
|
|
this.$refs.aside.clickHandler();
|
|
|
} else {
|
|
|
+ this.$refs.aside.clearTimer();
|
|
|
+ // this.nolayer = this.layersData[0].year;
|
|
|
// this.layersData.forEach((img) => {
|
|
|
// this.setImager(img, false);
|
|
|
// });
|
|
@@ -184,14 +186,15 @@ export default {
|
|
|
newVal.forEach((res, index) => {
|
|
|
this.checkdata[0].push(res.dlbmmc);
|
|
|
// this.checkdata[1].push(res.dlbmmc);
|
|
|
+ let adata = { isfly: true, fill_a: 0.8 };
|
|
|
if (res.qgeom)
|
|
|
- loadGeoJSON(res.qgeom, res.dict_color, { isfly: true }, (data) => {
|
|
|
+ loadGeoJSON(res.qgeom, res.dict_color, adata, (data) => {
|
|
|
geoSources[res.dlbmmc + "q"] = data;
|
|
|
data.name = "fpdb";
|
|
|
data.setVisibleInViewport(1, false);
|
|
|
});
|
|
|
if (res.hgeom)
|
|
|
- loadGeoJSON(res.hgeom, res.dict_color, { isfly: true }, (data) => {
|
|
|
+ loadGeoJSON(res.hgeom, res.dict_color, adata, (data) => {
|
|
|
geoSources[res.dlbmmc + "h"] = data;
|
|
|
data.name = "fpdb";
|
|
|
data.setVisibleInViewport(0, false);
|
|
@@ -209,7 +212,7 @@ export default {
|
|
|
},
|
|
|
watch: {
|
|
|
nolayer(newVal, oldVal) {
|
|
|
- console.log(newVal, oldVal,'---nolayer');
|
|
|
+ console.log(newVal, oldVal, "---nolayer");
|
|
|
if (oldVal) this.setImager({ year: oldVal }, false);
|
|
|
},
|
|
|
},
|