Skip to main content

@mapgear/geoapps > Location > (constructor)

Location.(constructor)

Create a new location object

Signature:
constructor(x: number, y: number, zoom: number, rotation?: number, zoomToExtent?: boolean);

Parameters

ParameterTypeDescription
xnumberX-coordinate
ynumberY-coordinate
zoomnumberZoom-level
rotationnumber(Optional) Rotation of map in degrees
zoomToExtentboolean(Optional) Whether the map should zoom to extent