Geoportal Extension for Leaflet API Reference

Namespace: Route

L.geoportalControl.Route

Leaflet Control Class to compute and display route between start and end points using routing service of the geoportal platform.

Use L.geoportalControl.Route() factory to create instances of that class.

Extends Leaflet L.Control native class.

Methods

compute(positions, options)

Leaflet/Controls/Route.js, line 1368

This method is public.
It allows to control the execution of a traitment.

Name Type Description
positions Object

positions = [{lng: , lat: }]

options Object

options = {...}