Skip to content

Commit

Permalink
Limit zoom on POI click
Browse files Browse the repository at this point in the history
  • Loading branch information
jmccollum-woolpert committed Jul 12, 2024
1 parent 9526d48 commit 91fc810
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -245,6 +245,9 @@ export class RoutesRowComponent implements OnChanges, OnInit, OnDestroy {
})
);
this.mapService.setBounds(bounds, false);
if (this.mapService.map.getZoom() > 16) {
this.mapService.map.setZoom(16);
}
});
}
}

0 comments on commit 91fc810

Please sign in to comment.