Geoportal Extension for OpenLayers
API Reference

Module: Route

module:~controls/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 1559

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 1200

event triggered at the end of drawing input

route:drawstart

Controls/Route/Route.js, line 1208

event triggered at the start of drawing input