For AI agents: a documentation index is available at /llms.txt. Markdown versions of all pages are available by appending .md to any URL.

Class MaptilerNavigationControlMaptiler

A NavigationControl control contains zoom buttons and a compass.

let nav = new NavigationControl();
map.addControl(nav, 'top-left');

Hierarchy (View Summary)

Index

Constructors

Properties

Methods

Constructors

Properties

Methods

  • Register a control on the map and give it a chance to register event listeners and resources. This method is called by Map.addControl internally.

    Parameters

    • map: MapMLGL

      the Map this control will be added to

    Returns HTMLElement

    The control's container element. This should be created by the control and returned by onAdd without being attached to the DOM: the map will insert the control's element into the DOM as necessary.

Was this helpful?