Optionaloptions: {OptionalapiKey?: stringAPI key for autocomplete service call. The key "calcul" is used by default.
OptionalautocompleteOptions?: anyautocomplete service options (see Gp.Services.autoComplete() to know all autocomplete options)
OptionaldisplayInfo?: booleanwhether to display info in a popup or not (not implemented yet) Default is true
Optionalssl?: booleanuse of ssl or not (default true, service requested using https protocol)
Optionaltag?: {tag options
OptionaladdOption?: booleanwhether to display picto to add another LocationSelector (in case of route control)
Optionaldisplay?: booleanwhether to display or hide component. Default is true
OptionalgroupId?: numberlocationSelector global component id (in case locationSelector is called by another graphic component, e.g. route control)
Optionalid?: 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, ...
Optionallabel?: stringtext to display in component (e.g. "Departure"). Default is ">"
OptionalmarkerOpts?: { offset?: any[]; url?: string }options to use your own marker. Default is a lightOrange marker.
Optionaloffset?: 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)
Optionalurl?: stringmarker base64 encoded url (ex "data:image/png;base64,...""). Mandatory for a custom marker
OptionalremoveOption?: booleanwhether to display picto to remove a LocationSelector (in case of route control)
uuid
ProtecteddisposedThe object has already been disposed.
ProtectedlistenerKey name.
Listener.
Type.
Listener.
ProtectedapplyProtectedApply 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.
ProtecteddisposeProtectedExtension 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.
Optionaltype: 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.
ProtectedonceProtectedonKey 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.
ProtectedunProtectedUnlisten for a certain type of event.
Type.
Listener.
component options