See ol.control.Route
Example
import Route from "gpf-ext-ol/controls/Route"
ou
import { Route } from "gpf-ext-ol"
Events
-
route:compute
Controls/Route/Route.js, line 1567 -
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
Controls/Route/Route.js, line 1205 -
event triggered at the end of drawing input
-
route:drawstart
Controls/Route/Route.js, line 1213 -
event triggered at the start of drawing input