|
@@ -193,6 +193,16 @@ export default {
|
|
|
this.$emit("updateParent", "loading", false);
|
|
|
},
|
|
|
async Getkjxx() {
|
|
|
+ let jxres = await QueryList({
|
|
|
+ jscType: "qytuzz_sdzl_kjxx_jx",
|
|
|
+ id: this.region,
|
|
|
+ });
|
|
|
+ if (jxres.data && jxres.data.length)
|
|
|
+ loadGeoJSON(jxres.data[0].geom, "#ffffff", { isfly: true }, (data) => {
|
|
|
+ // geoSources[ri] = data;
|
|
|
+ data.name = "sdqy";
|
|
|
+ data.show = false;
|
|
|
+ });
|
|
|
let res = await QueryList({
|
|
|
jscType: "qytuzz_sdzl_kjxx",
|
|
|
id: this.region,
|
|
@@ -203,7 +213,7 @@ export default {
|
|
|
newVal.forEach((res, ri) => {
|
|
|
let color = legends[res.type].color;
|
|
|
if (res.geom)
|
|
|
- loadGeoJSON(res.geom, color, { isfly: true }, (data) => {
|
|
|
+ loadGeoJSON(res.geom, color, { isfly: false }, (data) => {
|
|
|
geoSources[ri] = data;
|
|
|
data.name = res.type = 0 ? "sdqy" : "zzqy";
|
|
|
// data.show = false;
|