Skip to content

Commit

Permalink
[fix] #175 prevent multiple location buttons
Browse files Browse the repository at this point in the history
  • Loading branch information
Type-Style committed Feb 14, 2025
1 parent 3fed720 commit fda83f1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/client/components/Map.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,7 @@ function Map({ entries }: { entries: Array<Models.IEntry> }) {
<div className="mapStyle" data-mui-color-scheme={mapStyle}>
<MapContainer className="mapContainer" center={[lastEntry.lat, lastEntry.lon]} zoom={13} maxZoom={19}>
<MapRecenter lat={lastEntry.lat} lon={lastEntry.lon} fly={true} />
<LocationButton lat={lastEntry.lat} lon={lastEntry.lon} key={lastEntry.index -1} />
<LocationButton lat={lastEntry.lat} lon={lastEntry.lon} />
<LayerChangeHandler mapStyle={mapStyle} setMapStyle={setMapStyle} />
<LayersControl position="bottomright">
{layers.map((layer, index) => {
Expand Down

0 comments on commit fda83f1

Please sign in to comment.