Optional
options: {Optional
apiKey?: stringAPI key for autocomplete service call. The key "calcul" is used by default.
Optional
autocompleteOptions?: anyautocomplete service options (see Gp.Services.autoComplete() to know all autocomplete options)
Optional
displayInfo?: booleanwhether to display info in a popup or not (not implemented yet) Default is true
Optional
ssl?: booleanuse of ssl or not (default true, service requested using https protocol)
Optional
tag?: {tag options
Optional
addOption?: booleanwhether to display picto to add another LocationSelector (in case of route control)
Optional
display?: booleanwhether to display or hide component. Default is true
Optional
groupId?: numberlocationSelector global component id (in case locationSelector is called by another graphic component, e.g. route control)
Optional
id?: numberorder id number in a locations group, in case several LocationSelector are used. For instance in route case : departure tag id should be 0, arrival tag id should be 1, and other ones : 2, 3, ...
Optional
label?: stringtext to display in component (e.g. "Departure"). Default is ">"
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 ol.Overlay)
Optional
url?: stringmarker base64 encoded url (ex "data:image/png;base64,...""). Mandatory for a custom marker
Optional
removeOption?: booleanwhether to display picto to remove a LocationSelector (in case of route control)
uuid
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 all and input
clear all results and the marker.
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.
get coordinate
this._coordinate - point coordinate (EPSG:4326) : [lon, lat]
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.
Optional
type: stringType. If not provided,
true
will be returned if this event target has any listeners.
Has listeners.
The object has properties.
Key name.
Old value.
Protected
onceProtected
onKey name.
Listener.
Type.
Listener.
set coordinate
Coordinate in the map projection by default, otherwise, the projection is entered in the following parameter
Coordinate projection
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.
component options