For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.
Interface Control
Methods
onAdd
-
Method called when the control is added to the map.
Parameters
- map: Map
The map instance the control is being added to.
Returns HTMLElement
The HTMLElement representing the control.
- map: Map
onRemove
-
Method called when the control is removed from the map.
Parameters
- map: Map
The map instance the control is being removed from.
Returns void
- map: Map
Interface for creating custom map controls.