Adds a light/dark theme toggle button to the map. Mounted by the capability lifecycle when modules.theme-toggle.enabled is true.
modules.theme-toggle.enabled
true
Map adapter instance.
Control position on the map.
A destroy function to remove the control and clean up listeners, or undefined if the control could not be created.
undefined
Adds a light/dark theme toggle button to the map. Mounted by the capability lifecycle when
modules.theme-toggle.enabledistrue.