onLayerVisible
onLayerVisible refers to a callback or event in mapping applications that fires when a layer transitions to a visible state on the map. It is commonly used in conjunction with layer toggles in layer switchers, or when programmatic visibility changes occur.
Implementation and naming vary by library. In some frameworks, the event is named change:visible or layervisible;
Common uses include updating user interface elements (for example, highlighting the active layer in a legend),
Best practices include adding the listener when the map or layer is created and removing it when