This commit is contained in:
Clement 2024-05-31 17:02:45 +02:00
parent fec885585a
commit 5cd1c68151

View File

@ -19,7 +19,6 @@ const metadata = {
<Button id="test-btn">test</Button>
</div>
<script src='leaflet-routing-machine/dist/leaflet-routing-machine.js'></script>
<!-- for remouve footer -->
<!-- <div slot="footer"></div> -->
@ -27,7 +26,7 @@ const metadata = {
</Layout>
<script>
import L, { geoJSON, Icon, Popup, type LatLngTuple } from 'leaflet'
import L from 'leaflet'
import markerShadow from "leaflet/dist/images/marker-shadow.png"
import markerIcon from "leaflet/dist/images/marker-icon.png"
import 'leaflet-routing-machine/dist/leaflet-routing-machine.js'
@ -35,11 +34,6 @@ const metadata = {
const icon = {icon: new L.Icon({iconUrl: markerIcon.src, shadowUrl: markerShadow.src, iconAnchor: [13,41]})}
// const BACK_URL = "https://drink-tweb.cb85.fr/"
const BACK_URL = "http://localhost:3001/"
let mapsCenter : L.LatLngTuple
// declare map
const map = L.map('map', {
center: [51.5, -0.09],