Skip to content

Commit

Permalink
Fix issue with bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
arnaudleclerc committed Jul 13, 2021
1 parent 3b2177b commit 2ce0182
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions src/AzureMapsControl.Components/typescript/core/core.ts
Original file line number Diff line number Diff line change
Expand Up @@ -504,18 +504,8 @@ export class Core {
});
}

public static getCamera(): azmaps.CameraOptions {
const camera = this._map.getCamera();
return <azmaps.CameraOptions>{
bearing: camera.bearing,
center: camera.center,
centerOffset: camera.centerOffset,
maxBounds: camera.maxBounds,
maxZoom: camera.maxZoom,
minZoom: camera.minZoom,
pitch: camera.pitch,
zoom: camera.zoom
};
public static getCamera(): azmaps.CameraOptions & azmaps.CameraBoundsOptions {
return this._map.getCamera();
}

public static getStyle(): azmaps.StyleOptions {
Expand Down

0 comments on commit 2ce0182

Please sign in to comment.