Compare commits
2 Commits
fec885585a
...
3c671d68e4
Author | SHA1 | Date | |
---|---|---|---|
3c671d68e4 | |||
5cd1c68151 |
@ -18,8 +18,6 @@ const metadata = {
|
||||
<div class="w-full h-96 grow" id="map" />
|
||||
<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 +25,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 +33,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],
|
||||
|
Loading…
x
Reference in New Issue
Block a user