onAdd method

HtmlElement onAdd(
  1. MapboxMap map
)

Register a control on the map and give it a chance to register event listeners and resources. This method is called by {@link MapboxMap#addControl} internally.

Implementation

HtmlElement onAdd(MapboxMap map) => jsObject.onAdd(map.jsObject);