Constructor
# new MapboxGLButtonControl(className, title, textContent, id, eventHandler)
Create a Mapbox GL Button object.
Parameters:
| Name | Type | Description |
|---|---|---|
className |
string
|
The className value. |
title |
string
|
The title value. |
textContent |
string
|
The textContent value. |
id |
string
|
The id value. |
eventHandler |
event
|
The eventHandler value. |
Methods
# onAdd(map) → {HTMLDivElement}
On Add function.
Parameters:
| Name | Type | Description |
|---|---|---|
map |
map
|
The map object. |
The this.container div element.
HTMLDivElement