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 cb626ad
Show file tree
Hide file tree
Showing 2 changed files with 4 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
Original file line number Diff line number Diff line change
Expand Up @@ -1069,6 +1069,7 @@ export class GrwOutdoorSiteDetail {
fontFamily={this.fontFamily}
touristicContent={touristicContent}
isInsideHorizontalList={true}
colorSurfaceContainerLow={this.colorSurfaceContainerLow}
></grw-touristic-content-card>
</div>
))}
Expand All @@ -1094,6 +1095,7 @@ export class GrwOutdoorSiteDetail {
fontFamily={this.fontFamily}
touristicEvent={touristicEvent}
isInsideHorizontalList={true}
colorSurfaceContainerLow={this.colorSurfaceContainerLow}
></grw-touristic-event-card>
</div>
))}
Expand Down

0 comments on commit cb626ad

Please sign in to comment.