<ContextMenu />

A context menu component useful for contextual geospatial actions

Constructor

# <ContextMenu map children keepDefaults />

PropTypes:
Name Type Required Description Default
map object Yes A map which is used to compute the click location
children node No A set of components (like `ContextMenuCoords` or custom items made with `ContextMenuListItem`) which perform actions when clicked
keepDefaults bool No A boolean to indicate if the default context menu items should be left and custom items appended only false
Since:
  • 0.16.0

View Source ContextMenu/ContextMenu.js, line 16