From f4ae836c6543dbcadaa02d157491048571c9899a Mon Sep 17 00:00:00 2001 From: ben_29 Date: Thu, 26 Oct 2023 22:16:59 +0800 Subject: [PATCH] feat: add NavigationControl --- src/components/RunMap/index.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/RunMap/index.tsx b/src/components/RunMap/index.tsx index 819201c1a21..8164d1c0d77 100644 --- a/src/components/RunMap/index.tsx +++ b/src/components/RunMap/index.tsx @@ -1,6 +1,6 @@ import MapboxLanguage from '@mapbox/mapbox-gl-language'; import React, { useRef, useCallback } from 'react'; -import Map, { Layer, Source, FullscreenControl, MapRef } from 'react-map-gl'; +import Map, { Layer, Source, FullscreenControl, NavigationControl, MapRef } from 'react-map-gl'; import useActivities from '@/hooks/useActivities'; import { MAP_LAYER_LIST, @@ -141,6 +141,7 @@ const RunMap = ({ )} {title} + ); };