Compare commits

...

2 Commits

Author SHA1 Message Date
3c671d68e4 cleanup
Some checks failed
Build Docker Image Front / run (pull_request) Failing after 37s
Build Docker Image Back / run (pull_request) Successful in 24s
JsDocs / coverage (pull_request) Successful in 26s
Test and coverage / coverage (pull_request) Failing after 1m28s
2024-05-31 17:02:53 +02:00
5cd1c68151 cleanup 2024-05-31 17:02:45 +02:00

View File

@ -18,8 +18,6 @@ const metadata = {
<div class="w-full h-96 grow" id="map" /> <div class="w-full h-96 grow" id="map" />
<Button id="test-btn">test</Button> <Button id="test-btn">test</Button>
</div> </div>
<script src='leaflet-routing-machine/dist/leaflet-routing-machine.js'></script>
<!-- for remouve footer --> <!-- for remouve footer -->
<!-- <div slot="footer"></div> --> <!-- <div slot="footer"></div> -->
@ -27,7 +25,7 @@ const metadata = {
</Layout> </Layout>
<script> <script>
import L, { geoJSON, Icon, Popup, type LatLngTuple } from 'leaflet' import 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'
@ -35,11 +33,6 @@ const metadata = {
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]})}
// const BACK_URL = "https://drink-tweb.cb85.fr/"
const BACK_URL = "http://localhost:3001/"
let mapsCenter : L.LatLngTuple
// declare map // declare map
const map = L.map('map', { const map = L.map('map', {
center: [51.5, -0.09], center: [51.5, -0.09],