Skip to content

Commit

Permalink
feat: add NavigationControl (#534)
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-29 authored Oct 28, 2023
1 parent 3f073b7 commit 23464b5
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/RunMap/index.tsx
Original file line number Diff line number Diff line change
@@ -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,
Expand Down Expand Up @@ -141,6 +141,7 @@ const RunMap = ({
)}
<span className={styles.runTitle}>{title}</span>
<FullscreenControl style={fullscreenButton} />
<NavigationControl showCompass={false} position={'bottom-right'} style={{ opacity: 0.3 }} />
</Map>
);
};
Expand Down

1 comment on commit 23464b5

@vercel
Copy link

@vercel vercel bot commented on 23464b5 Oct 28, 2023

Choose a reason for hiding this comment

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

Successfully deployed to the following URLs:

running-page – ./

running-page-yihong0618.vercel.app
running-page.vercel.app
running-page-git-master-yihong0618.vercel.app

Please sign in to comment.