Skip to content

Commit

Permalink
fix: add full screen option in area map (#1044)
Browse files Browse the repository at this point in the history
Co-authored-by: Isaac Alonso <[email protected]>
  • Loading branch information
isaac-aa and isaac-aa authored Dec 26, 2023
1 parent f1b32c7 commit a4a61c1
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/area/areaMap.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
'use client'
import * as React from 'react'
import { Map, Marker, ScaleControl, LngLatBoundsLike, MapboxMap } from 'react-map-gl'
import { Map, Marker, ScaleControl, FullscreenControl, LngLatBoundsLike, MapboxMap } from 'react-map-gl'
import dynamic from 'next/dynamic'
import { AreaMetadataType, AreaType } from '../../js/types'
import { MAP_STYLES } from '../maps/BaseMap'
Expand Down Expand Up @@ -108,6 +108,7 @@ export default function AreaMap (props: AreaMapProps): JSX.Element {
</Marker>

<ScaleControl />
<FullscreenControl />
</Map>
</div>
)
Expand Down

1 comment on commit a4a61c1

@vercel
Copy link

@vercel vercel bot commented on a4a61c1 Dec 26, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.