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 99fb66113d - Show all commits

View File

@ -25,12 +25,12 @@ const metadata = {
</Layout> </Layout>
<script> <script>
import L from 'leaflet' import * as L from 'leaflet'
import markerShadow from "leaflet/dist/images/marker-shadow.png" import markerShadow from "leaflet/dist/images/marker-shadow.png"
import markerIcon from "leaflet/dist/images/marker-icon.png" import markerIcon from "leaflet/dist/images/marker-icon.png"
import 'leaflet-routing-machine/dist/leaflet-routing-machine.js' import 'leaflet-routing-machine/dist/leaflet-routing-machine.js'
import 'leaflet-control-geocoder/dist/Control.Geocoder.js' import 'leaflet-control-geocoder/dist/Control.Geocoder.js'
const icon = {icon: new L.Icon({iconUrl: markerIcon.src, shadowUrl: markerShadow.src, iconAnchor: [13,41]})} const icon = {icon: new L.Icon({iconUrl: markerIcon.src, shadowUrl: markerShadow.src, iconAnchor: [13,41]})}
// declare map // declare map
@ -57,7 +57,9 @@ const metadata = {
// L.latLng(47.218536, -1.554075) // L.latLng(47.218536, -1.554075)
// ], // ],
routeWhileDragging: true, routeWhileDragging: true,
//@ts-ignore
geocoder: L.Control.Geocoder.nominatim(), geocoder: L.Control.Geocoder.nominatim(),
//@ts-ignore
position: 'topleft', position: 'topleft',
showAlternatives: true, showAlternatives: true,
reverseWaypoints: true, reverseWaypoints: true,