This context menu is shown to the user when the airbase marker is right clicked on the map. It allows the user to inspect information about the airbase, as well as allowing to spawn units from the airbase itself and land units on it.

Hierarchy

Constructors

Properties

#airbase: null | Airbase = null
#container: null | HTMLElement
#latlng: LatLng = ...
#visibleSubMenu: null | string = null
#x: number = 0
#y: number = 0

Methods

  • Sets the airbase for which data will be shown in the context menu

    Parameters

    • airbase: Airbase

      The airbase for which data will be shown in the context menu. Note: the airbase must be present in the public/databases/airbases/.json database.

    Returns void

  • Show the contextmenu on top of the map, usually at the location where the user has clicked on it.

    Parameters

    • x: number

      X screen coordinate of the top left corner of the context menu

    • y: number

      Y screen coordinate of the top left corner of the context menu

    • latlng: LatLng

      Leaflet latlng object of the mouse click

    Returns void

Generated using TypeDoc