Class: Menu

An OpenLayers overlay that shows a contextual menu with configurable actions anchored from its top left to a specific location. An event is fired when any of the action is clicked.

Constructor

Parameters:
Name Type Attributes Description
[menuOptions] ngeox.MenuOptions= <optional>

Menu options.

[opt_overlayOptions] olx.OverlayOptions= <optional>

Overlay options.

Extends

Methods

close()

open(coordinate)

Opens the menu at the desited coordinate. Also starts listening for the clickout if autoClose is enabled.

Parameters:
Name Type Description
coordinate ol.Coordinate

Where to open the menu.

setMap(map)

Parameters:
Name Type Description
map ol.Map|undefined

Map.