Geoportal SDK 2D/3D API Reference

Namespace: Center


Map centering information object.

  • Use x,y and projection properties to center the map with coordinates ;
  • Use location and locationType properties to center the map thanks to Geoportal geocoding web service.
  • Use geolocate to center the map with user position.
Name Type Description
x Float

x coordinates for center

y Float

y coordinates for center

projection String

center coordinates srs

location String

place or address where to center the map

locationType String

location type ("StreetAddress", "PositionOfInterest", "CadastralParcel", "location"). Default is "location"

geolocate Boolean

center the map by geolocation