Skip to content

Commit

Permalink
Autorise la désactivation de la géolocalisation
Browse files Browse the repository at this point in the history
  • Loading branch information
totakoko committed Oct 14, 2024
1 parent 27f1cd4 commit e288eca
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/Map/Map.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -637,7 +637,8 @@ const InternalMap = ({
onSourceData={onMapSourceData}
ref={mapRef}
>
{!geolocDisabled && <GeolocateControl fitBoundsOptions={{ maxZoom: 13 }} />}
{/* trackUserLocation allows the user to disable the geolocation marker */}
{!geolocDisabled && <GeolocateControl fitBoundsOptions={{ maxZoom: 13 }} trackUserLocation />}
<AttributionControl
compact={false}
position="bottom-right"
Expand Down

0 comments on commit e288eca

Please sign in to comment.