@mapgear/geoapps > Location > (constructor)
Location.(constructor)
Create a new location object
Signature:constructor(x: number, y: number, zoom: number, rotation?: number, zoomToExtent?: boolean);
Parameters
Parameter | Type | Description |
---|---|---|
x | number | X-coordinate |
y | number | Y-coordinate |
zoom | number | Zoom-level |
rotation | number | (Optional) Rotation of map in degrees |
zoomToExtent | boolean | (Optional) Whether the map should zoom to extent |