@smartmaps/smartmaps-gl / ContextMenuItem
Type Alias: ContextMenuItem
ContextMenuItem =
object
The ContextMenu item object
Properties
action
action:
string
An identifier for the action associated with this menu item
Remarks
must be unique
handler?
optionalhandler?: (coords,map) =>void
The callback function executed when the menu item is clicked
Parameters
coords
LngLat
The geographic coordinates where the menu was triggered
map
The instance of the map where the interaction occurred
Returns
void
label
label:
string
The display text shown to the user in the context menu