Geoportal SDK 2D/3D API Reference

Namespace: Center

Gp.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.
Properties:
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 Array.<String>

location types ("StreetAddress", "PositionOfInterest", "CadastralParcel"). Default is ["StreetAddress", "PositionOfInterest"]

geolocate Boolean

center the map by geolocation