refactor: remove leaflet-request-icon event protocol
The discovery handshake (marker dispatching leaflet-request-icon on children, icons listening and responding with icon-changed) existed to handle the edge case where icon definitions register before marker definitions. Since bundled imports register all components in deterministic order and deep imports are an advanced use case left to the consumer, remove the event entirely. icon-changed bubbling alone covers all practical timing scenarios. - Remove LeafletRequestIconEvent type and HTMLElementEventMap entry - Remove #onRequest handler and addEventListener/removeEventListener calls from both leaflet-icon and leaflet-div-icon - Remove child-iteration dispatch loop from leaflet-markermain
parent
35190bacc5
commit
2a1b56c6e3
Loading…
Reference in New Issue