切换底图

This commit is contained in:
zengmingjie 2025-06-25 22:42:41 +08:00
parent 5c9ab6cc4c
commit d98198b40d
1 changed files with 1 additions and 0 deletions

View File

@ -231,6 +231,7 @@ export default {
},
modelClick() {
//
this.toggleMap = !this.toggleMap;
window.olMap.getLayers().forEach((layer) => {
if (layer.get("title") === "白色底图组") {
layer.setVisible(this.toggleMap);