Attaches a native DOM event handler on an element.
Registers the cleanup in _state._eventCleanups.
Uses a non-capturing stopPropagation wrapper so that clicks on
theme-selector buttons do not propagate to the map canvas, while
still allowing the handler itself to execute normally.
Attaches a native DOM event handler on an element. Registers the cleanup in _state._eventCleanups.
Uses a non-capturing stopPropagation wrapper so that clicks on theme-selector buttons do not propagate to the map canvas, while still allowing the handler itself to execute normally.