feat: use drink api in front and more #16

Merged
Clement merged 47 commits from feat/use-drink-api-in-front into master 2024-06-07 17:09:58 +00:00
Showing only changes of commit 032ad34a84 - Show all commits

View File

@ -32,7 +32,7 @@ const metadata = {
import markerIcon from "leaflet/dist/images/marker-icon.png"
import { OpenStreetMapProvider } from 'leaflet-geosearch'
import { GeoSearchControl } from 'leaflet-geosearch'
import 'leaflet-routing-machine/dist/leaflet-routing-machine.js'
const icon = {icon: new L.Icon({iconUrl: markerIcon.src, shadowUrl: markerShadow.src, iconAnchor: [13,41]})}
@ -62,13 +62,14 @@ const metadata = {
style: 'bar',
}),
)
// L.Routing.control({
// waypoints: [
// L.latLng(57.74, 11.94),
// L.latLng(57.6792, 11.949)
// ],
// routeWhileDragging: true
// }).addTo(map)
L.Routing.control({
waypoints: [
L.latLng(57.74, 11.94),
L.latLng(57.6792, 11.949)
],
routeWhileDragging: true
}).addTo(map)
let poiMarkers = new Array<L.Marker>