Skip to content

Commit 2ce0182

Browse files
committed
Fix issue with bounds
1 parent 3b2177b commit 2ce0182

1 file changed

Lines changed: 2 additions & 12 deletions

File tree

  • src/AzureMapsControl.Components/typescript/core

src/AzureMapsControl.Components/typescript/core/core.ts

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -504,18 +504,8 @@ export class Core {
504504
});
505505
}
506506

507-
public static getCamera(): azmaps.CameraOptions {
508-
const camera = this._map.getCamera();
509-
return <azmaps.CameraOptions>{
510-
bearing: camera.bearing,
511-
center: camera.center,
512-
centerOffset: camera.centerOffset,
513-
maxBounds: camera.maxBounds,
514-
maxZoom: camera.maxZoom,
515-
minZoom: camera.minZoom,
516-
pitch: camera.pitch,
517-
zoom: camera.zoom
518-
};
507+
public static getCamera(): azmaps.CameraOptions & azmaps.CameraBoundsOptions {
508+
return this._map.getCamera();
519509
}
520510

521511
public static getStyle(): azmaps.StyleOptions {

0 commit comments

Comments
 (0)