Fe Map Cover Script May 2026
refreshOnViewChange() // Call this on map zoom/pan to keep cover full-screen if (this.enabled && this.coverLayer) this.addCover();
// Listen to map move/zoom map.on('moveend', () => myMapCover.refreshOnViewChange()); map.on('zoomend', () => myMapCover.refreshOnViewChange()); FE Map Cover Script
findFeatureById(id) // Replace with your actual layer management logic let found = null; this.map.eachLayer(layer => if (layer.options && layer.options.id === id) found = layer; refreshOnViewChange() // Call this on map zoom/pan to