Interface Control

Interface for creating custom map controls.

interface Control {
    onAdd(map: Map): HTMLElement;
    onRemove(map: Map): void;
}
Index

Methods

Methods

  • 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.

  • Method called when the control is removed from the map.

    Parameters

    • map: Map

      The map instance the control is being removed from.

    Returns void

Was this helpful?

GeoSplats SDK
Reference
Control