Methods
-
addScale(){undefined}
vmap/tools/location.js, line 165 -
Add a scale to the scale control
-
geolocateMe()
vmap/tools/location.js, line 280 -
Localise the map on the geolocation position
-
goHome()
vmap/tools/location.js, line 242 -
Localise the map on the home position
-
goTo(Xid, Yid, projectionId)
vmap/tools/location.js, line 259 -
Localise the map on the entry position
Name Type Description Xid
string html id to the X value
Yid
string html id to the Y value
projectionId
string html id to the projection value
-
locateGeom(geojson, proj){String}
vmap/tools/location.js, line 437 -
Locate a geom
Name Type Description geojson
string | object geoJSON geometry
proj
string geom projection (ex: EPSG:2154)
-
locatePlace(place){Number|String}
vmap/tools/location.js, line 407 -
Zoom on a place
Name Type Description place
Name Type Description lon
object longitude
lat
object latitude
geojson
object geometry
Returns:
error
-
maxExtent()
vmap/tools/location.js, line 228 -
Localise the map on the home position
-
removeLocation()
vmap/tools/location.js, line 477 -
Remove the location and hide the panel
-
searchLocation(location, limit)
vmap/tools/location.js, line 319 -
Search a location
Name Type Description location
string limit
integer -
setAPILocationProperties(){String}
vmap/tools/location.js, line 190 -
Make a ajax http request to the server and set the customLocationServicesProperties value
Returns:
error