the ID of the HTML element which will contain the context menu
Private #containerPrivate #latlngPrivate #visiblePrivate #xPrivate #ySet the options that will be presented to the user in the contextmenu
Dictionary element containing the text and tooltip of the options shown in the menu
Callback that will be called when the user clicks on one of the options
Show the contextmenu on top of the map, usually at the location where the user has clicked on it.
X screen coordinate of the top left corner of the context menu
Y screen coordinate of the top left corner of the context menu
Leaflet latlng object of the mouse click
Generated using TypeDoc
The UnitContextMenu is shown when the user rightclicks on a unit. It dynamically presents the user with possible actions to perform on the unit.