Skip to content

Commit e8a8c1c

Browse files
committed
Add fullscreen control
1 parent e43dda3 commit e8a8c1c

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

webapp/components/PollutionMapBase.tsx

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ import ReactMapGl, {
66
ViewStateChangeEvent,
77
NavigationControl,
88
AttributionControl,
9+
FullscreenControl,
910
} from "react-map-gl/maplibre";
1011
import maplibregl from "maplibre-gl";
1112
import "maplibre-gl/dist/maplibre-gl.css";
@@ -179,6 +180,7 @@ export default function PollutionMapBaseLayer({
179180
) : null}
180181
<AttributionControl compact={true} />
181182
<NavigationControl position="bottom-right" showCompass={false} />
183+
<FullscreenControl position="bottom-right" />
182184
</ReactMapGl>
183185
);
184186
}

0 commit comments

Comments
 (0)