Skip to content

Commit

Permalink
fix: FullscreenControl is not fullscreen until resizing window (#726)
Browse files Browse the repository at this point in the history
  • Loading branch information
orionna319 authored Oct 21, 2024
1 parent 9080dec commit fac33dd
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/components/RunMap/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,7 @@ const RunMap = ({
mapStyle="mapbox://styles/mapbox/dark-v10"
ref={mapRefCallback}
mapboxAccessToken={MAPBOX_TOKEN}
onRender={(event) => event.target.resize()}
>
<RunMapButtons changeYear={changeYear} thisYear={thisYear} />
<Source id="data" type="geojson" data={geoData}>
Expand Down

0 comments on commit fac33dd

Please sign in to comment.