Optional
apiKey?: stringAPI key for services call (isocurve and autocomplete services). The key "calcul" is used by default.
Optional
autocompleteOptions?: anyautocomplete service options. see Gp.Services.autoComplete() to know all autocomplete options
Optional
collapsed?: booleanSpecify if widget has to be collapsed (true) or not (false) on map loading. Default is true.
Optional
directions?: any[]list of directions to be displayed, by default : ["departure", "arrival"]. The first element is selected by default. Possible values are "departure" and "arrival". Directions enable to specify if input location point will be used as a departure point ("departure") or as an arrival point ("arrival")
Optional
draggable?: booleanSpecify if widget is draggable
Optional
exclusions?: anylist of exclusions with status (true = checked). By default : no exclusions checked.
Optional
export?: anySpecify if button "Export" is displayed. For the use of the options of the "Export" control, see packages/Controls/Export/Export.default
Optional
graphs?: any[]list of graph resources to be used for isocurve calculation, by default : ["Voiture", "Pieton"]. Possible values are "Voiture" and "Pieton". The first element is selected.
Optional
id?: numberAbility to add an identifier on the widget (advanced option)
Optional
isocurveOptions?: anyisocurve service options. see Gp.Services.isoCurve() to know all isocurve options.
Optional
layerDescription?: { description?: string; title?: string }Layer informations to be displayed in LayerSwitcher widget (only if a LayerSwitcher is also added to the map)
Optional
description?: stringLayer description to be displayed in LayerSwitcher
Optional
title?: stringLayer title to be displayed in LayerSwitcher
Optional
markerOpts?: { offset?: any[]; url?: string }options to use your own marker. Default is a lightOrange marker.
Optional
offset?: any[]Offsets in pixels used when positioning the overlay. The first element in the array is the horizontal offset. A positive value shifts the overlay right. The second element in the array is the vertical offset. A positive value shifts the overlay down. Default is [0, 0]. (see http://openlayers.org/en/latest/apidoc/ol.Overlay.html)
Optional
url?: stringmarker base64 encoded url (ex "data:image/png;base64,...""). Mandatory for a custom marker
Optional
methods?: any[]list of methods, by default : ["time", "distance"]. Possible values are "time" and "distance". The first element is selected by default.
Optional
ssl?: booleanuse of ssl or not (default true, service requested using https protocol)
var iso = ol.control.Isocurve({
"collapsed" : false,
"draggable" : true,
"export" : false,
"methods" : ["time", "distance"],
"exclusions" : {
"toll" : true,
"bridge" : false,
"tunnel" : true
},
"graphs" : ["Pieton", "Voiture"],
"markerOpts" : {
"url" : "...",
"offset" : [0,0]
}
"isocurveOptions" : {},
"autocompleteOptions" : {}
});
// if you want to pluggued the control Export with options :
var iso = new ol.control.Isocurve({
export : {
name : "export",
format : "geojson",
title : "Exporter",
menu : false
}
});
Protected
disposedThe object has already been disposed.
Protected
listenerKey name.
Listener.
Type.
Listener.
Protected
applyProtected
Apply any properties from another object without triggering events.
The source object.
Clean UI : reinit control
This method is public. It allows to control the execution of a traitment.
position in the projection map [ x, y ]
distance in km or hours-minutes
options = {...}
Dispatches an event and calls all listeners listening for events
of this type. The event parameter can either be a string or an
Object with a type
property.
Event object.
false
if anyone called preventDefault on the
event object or if any of the listeners returned false.
Clean up.
Protected
disposeProtected
Extension point for disposable objects.
Returns true if widget is collapsed (minimized), false otherwise
collapsed - true if widget is collapsed
Get container
container
Get isocurve data
data - process results
Get vector layer
geojson - GeoJSON format layer
Get vector layer where Isocurve geometry is drawn
layer - ol.layer.Vector isocurve layer
Get the listeners for a specified event type. Listeners are returned in the order that they will be called in.
Type.
Listeners.
Get an object of all property names and values.
Object.
Get default style
style
Optional
type: stringType. If not provided,
true
will be returned if this event target has any listeners.
Has listeners.
The object has properties.
This method is public. It allows to init the control.
Key name.
Old value.
Protected
onceProtected
onKey name.
Listener.
Type.
Listener.
Collapse or display widget main container
True to collapse widget, False to display it
Set isocurve data
control informations
computation type
direction type
list of exclusions
[lon, lat]
service response
transport type
Set vector layer
GeoJSON format layer
Set vector layer where Isocurve geometry is drawn
ol.layer.Vector isocurve layer
Overwrite OpenLayers setMap method
Map.
This function is used to set a target element for the control. It has no
effect if it is called after the control has been added to the map (i.e.
after setMap
is called on the control). If no target
is set in the
options passed to the control constructor and if setTarget
is not called
then the control is added to the map's overlay container.
Target.
Protected
unProtected
Unlisten for a certain type of event.
Type.
Listener.
event triggered when the compute is finished
isocurve:compute
event triggered at the end of drawing input
isocurve:drawend
event triggered at the start of drawing input
isocurve:drawstart
event triggered when user clear points to compute isochrone
isocurve:newresults
Isocurve control options