Subscribes to config-change events.
The handler receives the module's full current configuration right after any change made
with applyConfig, a module-specific setter or resetConfig.
'config-change'
Receives the module's config, or undefined when the config is cleared.
An unsubscribe function. Call it to remove only this handler, leaving the other handlers for the same event type registered.
Subscribes to shown-features events.
The handler is called right after a module's show() method, or its equivalent, updates
the map with new data. Only modules that have a show method offer it.
'shown-features'
Receives the data that was passed to show().
An unsubscribe function. Call it to remove only this handler, leaving the other handlers for the same event type registered.
Removes all handlers for the given event type at once.
To remove a single handler, call the unsubscribe function that on returns instead. Use
offfor bulk teardown, for example when unmounting a component that registered several handlers.