new IsochroneGeoportail( [options])
Parameters:
Name | Type | Argument | Description | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
<optional> |
Properties
|
Fires:
- event:isochrone
- event:error
Extends
Methods
-
search(coord, option)
-
Calculate an isochrone
Parameters:
Name Type Description coord
ol.coordinate option
number | string A number as time (in second) or distance (in meter), depend on method propertie or a string with a unit (s, mn, h for time or km, m)
-
setDirection(direction)
-
Set direction
Parameters:
Name Type Description direction
string The direction: 'direct' or 'reverse', default direct
-
setMap(map)
-
Set the map instance the control is associated with and add its controls associated to this map.
Parameters:
Name Type Description map
_ol_Map_ The map instance.
-
setMethod( [string])
-
Set the travel method
Parameters:
Name Type Argument Description string
<optional>
method The method (time or distance)
-
setMode(mode)
-
Set mode
Parameters:
Name Type Description mode
string The mode: 'car' or 'pedestrian', default 'car'