|
@@ -489,8 +489,10 @@ export default {
|
|
|
else this.draw_vector_tdgy_gy_jd(newVal);
|
|
|
},
|
|
|
tempdataLayerId(newVal, oldVal) {
|
|
|
- if (oldVal) {
|
|
|
+ if (oldVal && layersObj[oldVal]) {
|
|
|
layersObj[oldVal].show = false
|
|
|
+ } else if(layersObj[newVal]){
|
|
|
+ layersObj[newVal].show = true
|
|
|
}
|
|
|
},
|
|
|
computed_vectorData(newVal, oldVal) {
|