This context menu allows the user to edit or delete a CoalitionArea. Moreover, it allows the user to create a IADS automatically using the CoalitionArea as bounds.

Hierarchy

Constructors

Properties

#coalitionArea: null | CoalitionArea = null
#coalitionSwitch: Switch
#container: null | HTMLElement
#hidden: boolean = true
#iadsDensitySlider: Slider
#iadsDistributionSlider: Slider
#iadsErasDropdown: Dropdown
#iadsRangesDropdown: Dropdown
#iadsTypesDropdown: Dropdown
#latlng: LatLng = ...
#visibleSubMenu: null | string = null
#x: number = 0
#y: number = 0

Methods

  • Hide all submenus

    Returns void

  • Callback event called when the coalition switch is clicked to change the coalition of the CoalitionArea

    Parameters

    • value: boolean

      Switch position (false: blue, true: red)

    Returns void

  • Show a submenu of the contextmenu

    Parameters

    • type: string

      The submenu type, currently only "iads"

    Returns void

  • Returns void

  • Get the CoalitionArea object the contextmenu is editing

    Returns null | CoalitionArea

    The CoalitionArea the contextmenu is editing

  • Returns null | HTMLElement

  • Returns boolean

  • Returns LatLng

  • Returns null | string

  • Returns number

  • Returns number

  • Returns void

  • Set the CoalitionArea object the user will be able to edit using this menu

    Parameters

    Returns void

  • Parameters

    • menu: null | string

    Returns void

  • 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