javascriptmapshere-api

Display context menu over HERE map


Using HERE maps, I would like to display a context menu on right-click (or long-touch).

The developers guide lists the valid mouse/touch events as:

which implies I have to look into checking buttons on tap event but the API documentation also describes a ContextMenuEvent object, stating:

ContextMenuEvent should be fired, when a user right-clicks or longpresses on a map object.

Which of the events listed above constitutes a "right-click" or "longpress" event, receiving this ContextMenuEvent object?

There is a functioning example of a Context Menu on top of a HERE map here, but there is no mention of this in the current documentation and it appears to be using an older version of the API. Has the ability to produce context menus been removed?


Solution

  • On a whim I tried attaching to the event type contextmenu and it WORKED! Apparently this is just missing from their documentation.