|
@@ -9,14 +9,14 @@ import {
|
|
|
} from "react-leaflet";
|
|
|
import "./css/maps.css";
|
|
|
import {calcDistance} from "./helpers/distance";
|
|
|
-import {longitude, latitude, mapWidth, mapHeight} from "./config/variables";
|
|
|
+import {longitude, latitude, mapWidth, mapHeight, testPath} from "./config/variables";
|
|
|
|
|
|
export default class Leaflet extends React.Component{
|
|
|
state = {
|
|
|
latitude: latitude,
|
|
|
longitude: longitude,
|
|
|
zoom: 15,
|
|
|
- path: [[48.295742, 14.286967], [48.328529, 14.322428]],
|
|
|
+ path: testPath,
|
|
|
distance: 0
|
|
|
}
|
|
|
|
|
@@ -63,12 +63,6 @@ export default class Leaflet extends React.Component{
|
|
|
url="https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png"
|
|
|
/>
|
|
|
<ZoomControl position="bottomright" />
|
|
|
-
|
|
|
- <Marker position={position} onClick={this.newPathPoint}>
|
|
|
- <Popup>
|
|
|
- JKU: Ente
|
|
|
- </Popup>
|
|
|
- </Marker>
|
|
|
|
|
|
{this.state.path.map((pos, idx) =>
|
|
|
<Marker
|