Skip to content

Commit

Permalink
workshop version
Browse files Browse the repository at this point in the history
  • Loading branch information
dreamorosi authored and Andrea Amorosi committed May 15, 2024
1 parent 1852837 commit 4774612
Showing 1 changed file with 7 additions and 21 deletions.
28 changes: 7 additions & 21 deletions frontend/src/App.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,34 +3,20 @@

import React from "react";
import { MapView } from "@aws-amplify/ui-react-geo";
import { NavigationControl } from "react-map-gl";
import { GeofencesControl } from "./components/geofences/GeofencesControl";
import { TrackerControl } from "./components/tracking/TrackerControl";
import { DistanceControl } from "./components/routing/DistanceControl";
// import { NavigationControl } from "react-map-gl";
// import { GeofencesControl } from "./components/geofences/GeofencesControl";
// import { TrackerControl } from "./components/tracking/TrackerControl";
// import { DistanceControl } from "./components/routing/DistanceControl";

const coordinates = {
longitude: -115.17077150978058,
latitude: 36.12309017212961,
};

const App = () => {
return (
<MapView
initialViewState={{
...coordinates,
zoom: 15,
}}
style={{
width: "100vw",
height: "100vh",
}}
>
<NavigationControl position={"top-left"} />
<TrackerControl />
<GeofencesControl />
<DistanceControl />
</MapView>
);
return <>
Hello World!
</>;
};

export default App;

0 comments on commit 4774612

Please sign in to comment.