Skip to content

Commit

Permalink
feat: add NavigationControl
Browse files Browse the repository at this point in the history
  • Loading branch information
ben-29 committed Oct 26, 2023
1 parent 94485c3 commit f4ae836
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

0 comments on commit f4ae836

Please sign in to comment.