We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3b2177b commit 2ce0182Copy full SHA for 2ce0182
1 file changed
src/AzureMapsControl.Components/typescript/core/core.ts
@@ -504,18 +504,8 @@ export class Core {
504
});
505
}
506
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
- };
+ public static getCamera(): azmaps.CameraOptions & azmaps.CameraBoundsOptions {
+ return this._map.getCamera();
519
520
521
public static getStyle(): azmaps.StyleOptions {
0 commit comments