Adding a Context Menu

The example displays a context menu when the map is right clicked, Further alerts() are displayed when the menu items are clicked.

Use the button to add and remove additional menu items.