Skip to content

Commit

Permalink
fix: outdoor site fit bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
bastyen committed Oct 10, 2024
1 parent 8e706a5 commit e3a57f1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/grw-map/grw-map.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -1910,7 +1910,8 @@ export class GrwMap {

this.handleLayersControl();

this.map.fitBounds(this.currentOutdoorSiteLayer.getBounds());
this.map.invalidateSize();
this.map.fitBounds(this.currentOutdoorSiteLayer.getBounds(), { maxZoom: this.maxZoom });
!this.mapIsReady && (this.mapIsReady = !this.mapIsReady);
}

Expand Down

0 comments on commit e3a57f1

Please sign in to comment.