Class MapMouseELs

Click and contextmenu event listeners for the map

Source : file core/mapEditor/mapMouseELs/MapMouseELs.js at line 42

Public methods

static createFakeEvent ( clickOrContextMenuEvent )

Search a route near the given event listener and create a fake event if a route is found near the event point

Source : file core/mapEditor/mapMouseELs/MapMouseELs.js at line 50

Parameters

Name Type Description
clickOrContextMenuEvent Event

The event to use

static handleClickEvent ( clickEvent )

Click event listener for the map. Search an edited route near the click point and add a temp way point if any

Source : file core/mapEditor/mapMouseELs/MapMouseELs.js at line 92

Parameters

Name Type Description
clickEvent Event

The event to handle

static handleContextMenuEvent ( contextMenuEvent )

Context event listener for the map. Search an edited route near the click point and show a route context menu if any, otherwise show a map context menu

Source : file core/mapEditor/mapMouseELs/MapMouseELs.js at line 111

Parameters

Name Type Description
contextMenuEvent Event

The event to handle