Geoportal Extension for OpenLayers API Reference

Module: Route

module:~Controls/Route

Example

import Route from "src/OpenLayers/Controls/Route"

Events

route:compute

OpenLayers/Controls/Route.js, line 1553

event triggered when the compute is finished

Properties:
Name Type Description
type Object

event

target Object

instance Route

Example
Route.on("route:compute", function (e) {
  console.log(e.target.getData());
})

route:drawend

OpenLayers/Controls/Route.js, line 1199

event triggered at the end of drawing input

route:drawstart

OpenLayers/Controls/Route.js, line 1207

event triggered at the start of drawing input