new alk.interaction.EditTrailRoutingLayerKeyShortCuts(options)
This constructor creates an Interaction object that responds to certain keys that are used in manipulating the Edit Trail Routing Layer.
Option | Type | Description |
---|---|---|
routingLayer |
alk.layer.EditTrailRoutingLayer |
This option holds the reference to the |
prevRouteCondition |
ol.EventsConditionType |
This option holds the condition to call |
nextRouteCondition |
ol.EventsConditionType |
This option holds the condition to call |
Extends
- ol.interaction.Interaction
Methods
-
handleMapBrowserEvent(mapBrowserEvent){boolean}
-
Handles the
map browser event
if it was aKeyEvent
, and decides to call 'prevRoute' or 'nextRoute' on the associatedalk.layer.EditTrailRoutingLayer
.Name Type Description mapBrowserEvent
ol.MapBrowserEvent Map browser event.
Returns:
false
to stop event propagation.