Skip to content

Commit

Permalink
fix: FullscreenControl is not fullscreen until resizing window
Browse files Browse the repository at this point in the history
  • Loading branch information
orionna319 committed Oct 21, 2024
1 parent 9080dec commit 1a339ed
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 1a339ed

Please sign in to comment.