From 555d151957a29b932a0ccf14044a545373e0fb08 Mon Sep 17 00:00:00 2001 From: Clinton Lunn Date: Sun, 27 Oct 2024 21:38:50 -0600 Subject: [PATCH] feat: add geolocate control to /maps (#1186) --- src/components/maps/GlobalMap.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/maps/GlobalMap.tsx b/src/components/maps/GlobalMap.tsx index 1a41463f6..60d112070 100644 --- a/src/components/maps/GlobalMap.tsx +++ b/src/components/maps/GlobalMap.tsx @@ -1,6 +1,6 @@ 'use client' import { useCallback, useState } from 'react' -import { Map, FullscreenControl, ScaleControl, NavigationControl, MapLayerMouseEvent, ViewStateChangeEvent } from 'react-map-gl/maplibre' +import { Map, FullscreenControl, ScaleControl, NavigationControl, MapLayerMouseEvent, ViewStateChangeEvent, GeolocateControl } from 'react-map-gl/maplibre' import maplibregl, { MapLibreEvent } from 'maplibre-gl' import dynamic from 'next/dynamic' @@ -192,6 +192,7 @@ export const GlobalMap: React.FC = ({ {showFullscreenControl && } + {clickInfo != null && }