new LocationSelector(options)
Name | Type | Description | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options | Object |
optional
component options
|
Example
var locationselector = new LocationSelector({
apiKey : "",
tag : {
id : 1,
groupId : null,
label : "Départ",
markerOpts : {
url : "...",
offset : [0,0]
},
display : true
},
autocompleteOptions : {}
});
Extends
- ol.control.Control
Members
-
_addPointElement
-
elements pour ajouter ou supprimer un nouveau point
-
_buttonLabel
-
container du label du point
-
_coordinate
-
coordonnées du point selectionné, en EPSG:4326
-
_currentLocation
-
localisant
-
_inputAutoComplete
-
container de la saisi de l'autocompletion
-
_inputCoordinateContainer
-
container des coordonnées
-
_inputsContainer
-
container principal des entrées
-
_inputShowPointer
-
label du pointer de saisi sur la carte (avec img)
-
_inputShowPointerContainer
-
container du pointer de saisi sur la carte
-
_map
-
container map
-
_resources
-
ressources du services d'autocompletion (ayant droit!)
-
_suggestedContainer
-
container des reponses de l'autocompletion
-
_suggestedLocations
-
listes des reponses de l'autocompletion
-
_uid
-
uuid
Methods
-
_initContainer(){DOMElement}
Controls/LocationSelector/LocationSelector.js, line 272 -
initialize component container
Returns:
element
-
clear()
Controls/LocationSelector/LocationSelector.js, line 245 -
clean all and input
-
clearResults()
Controls/LocationSelector/LocationSelector.js, line 253 -
clear all results and the marker.
-
getCoordinate(){Array}
Controls/LocationSelector/LocationSelector.js, line 215 -
get coordinate
Returns:
- point coordinate (EPSG:4326) : [lon, lat]
-
initialize(options)
Controls/LocationSelector/LocationSelector.js, line 103 -
initialize component
Name Type Description options Object options
-
onLocationAddPointClick(e)
Controls/LocationSelector/LocationSelector.js, line 507 -
TODO this method is called by event 'click' on 'GProuteStageAdd' tag input
(cf. this._createRouteAddPointElement).
this point is added as a parameter for the service route.Name Type Description e Object HTMLElement
-
setCoordinate(coordinate, crs)
Controls/LocationSelector/LocationSelector.js, line 224 -
set coordinate
Name Type Description coordinate Object Coordinate in the map projection by default, otherwise, the projection is entered in the following parameter
crs String Coordinate projection