Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
akariv committed Dec 12, 2023
1 parent 071a326 commit ec46d28
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions projects/srm/src/app/page/page.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -680,9 +680,11 @@ export class PageComponent implements OnInit, AfterViewInit, OnDestroy {

zoomOutMap(viewport: ViewPort) {
this.savedState = null;
this.queueMapAction((map) => {
map.fitBounds([viewport.top_left, viewport.bottom_right], {padding: {top: 70, bottom: 10, left: 10, right: 10}, maxZoom: 15});
}, 'zoom-out-map');
if (viewport) {
this.queueMapAction((map) => {
map.fitBounds([viewport.top_left, viewport.bottom_right], {padding: {top: 70, bottom: 10, left: 10, right: 10}, maxZoom: 15});
}, 'zoom-out-map');
}
}

easeTo(props: any) {
Expand Down

0 comments on commit ec46d28

Please sign in to comment.