Fe | Map Cover Script

// Get map bounds const bounds = this.map.getBounds(); const southWest = bounds.getSouthWest(); const northEast = bounds.getNorthEast();

addCover() if (this.coverLayer) this.map.removeLayer(this.coverLayer); FE Map Cover Script

toggleCover() this.enabled = !this.enabled; if (this.enabled) this.addCover(); else this.removeCover(); // Get map bounds const bounds = this