feat: use drink api in front and more #16
@ -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>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user