diff --git a/proj/map/asset/js/db.js b/proj/map/asset/js/db.js index ff9a6c2..90a37dc 100644 --- a/proj/map/asset/js/db.js +++ b/proj/map/asset/js/db.js @@ -6,7 +6,6 @@ let SanTelmo = { xy: [-11.42,27.20], dirxy: [-12.98,35.95], dirzl: 4, - marker: null, img: "https://ed.brz9.dev/proj/map/asset/img/santelmo.jpg", txtFR: "Français Adipisicing live-edge fam velit. Messenger bag poke laboris aesthetic viral do semiotics authentic est selfies.", txtEN: "English Adipisicing live-edge fam velit. Messenger bag poke laboris aesthetic viral do semiotics authentic est selfies.", @@ -68,11 +67,12 @@ var jdb = { lamy : { id: "lamy", isActive: false, - xy: [-18.27,56.91] + xy: [-18.27,56.91], dirxy: [-21.66,52.47], dirzl: 5, + img: "https://ed.brz9.dev/proj/map/asset/img/lamy.jpg", type: "item", - name: "Parking Lamy" + name: "Parking Lamy", } } }, diff --git a/proj/map/asset/js/map.js b/proj/map/asset/js/map.js index 5811552..8d995d5 100644 --- a/proj/map/asset/js/map.js +++ b/proj/map/asset/js/map.js @@ -78,6 +78,16 @@ var layResto = L.layerGroup() let resto = jdb.data.db.resto.sub +let parking = jdb.data.db.parking.sub +Object.entries(parking).forEach(p => { + console.log(p[1]['name']) + p[1]['marker'] = L.marker(p[1]['xy'], { + icon: markParkingIcon, + }).addTo(map); + +}) + + Object.entries(resto).forEach(item => { console.log(item) console.log(item[1]['sub']) diff --git a/proj/map/asset/markers/parking-32x27.png b/proj/map/asset/markers/parking-32x27.png new file mode 100644 index 0000000..908328f Binary files /dev/null and b/proj/map/asset/markers/parking-32x27.png differ