Skip to content

Commit

Permalink
removed left overs from developement
Browse files Browse the repository at this point in the history
Signed-off-by: Lucas Nandico <lucas.nandico@fau.de>
  • Loading branch information
Lucas-Nan committed May 21, 2024
1 parent c9fd67d commit 824da1f
Showing 1 changed file with 0 additions and 17 deletions.
17 changes: 0 additions & 17 deletions frontend/src/components/MapView/MapView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import "leaflet/dist/leaflet.css";
import "./MapView.css";
import { useMap, useMapEvents } from "react-leaflet/hooks";
import L from "leaflet";
import Button from "@mui/material/Button";
import icon from "leaflet/dist/images/marker-icon.png";
import iconShadow from "leaflet/dist/images/marker-shadow.png";
import MapOptions from "./MapOptions";
Expand All @@ -23,22 +22,6 @@ const DefaultIcon = L.icon({

L.Marker.prototype.options.icon = DefaultIcon;

function Btn() {
const map = useMap();
return (
<Button
variant="text"
onClick={() => {
map.locate().on("locationfound", function (e) {
map.flyTo(e.latlng, map.getZoom());
});
}}
>
Text
</Button>
);
}

const MapView: React.FC = () => {
const { currentMapCache, setCurrentMapCache } = useContext(MapContext);
const geoData = useGeoData(currentMapCache.mapBounds, currentMapCache.zoom);
Expand Down

0 comments on commit 824da1f

Please sign in to comment.