diff --git a/proj/map/asset/img/lamy.jpg b/proj/map/asset/img/lamy.jpg new file mode 100644 index 0000000..98c6f26 Binary files /dev/null and b/proj/map/asset/img/lamy.jpg differ diff --git a/proj/map/asset/js/db.js b/proj/map/asset/js/db.js index a5bc14b..ff9a6c2 100644 --- a/proj/map/asset/js/db.js +++ b/proj/map/asset/js/db.js @@ -68,6 +68,9 @@ var jdb = { lamy : { id: "lamy", isActive: false, + xy: [-18.27,56.91] + dirxy: [-21.66,52.47], + dirzl: 5, type: "item", name: "Parking Lamy" } diff --git a/proj/map/asset/js/map.js b/proj/map/asset/js/map.js index c06cba0..5811552 100644 --- a/proj/map/asset/js/map.js +++ b/proj/map/asset/js/map.js @@ -50,6 +50,13 @@ var markRestoIcon = L.icon({ popupAnchor: [0, -38], }); +var markParkingIcon = L.icon({ + iconUrl: 'asset/markers/parking-32x27.png', + iconSize: [27, 32], + iconAnchor: [13.5, 32], + popupAnchor: [0, -38], +}); + var marker = L.marker(hotelxy, { icon: markPointerIcon, @@ -64,6 +71,9 @@ marker.on('click', function(e) { console.log("looping resto from map.js") +var layzl3 = L.layerGroup() +var layzl3 = L.layerGroup() +var layzl3 = L.layerGroup() var layResto = L.layerGroup() let resto = jdb.data.db.resto.sub diff --git a/proj/map/asset/markers/parking-42x36.png b/proj/map/asset/markers/parking-42x36.png new file mode 100644 index 0000000..ebc3920 Binary files /dev/null and b/proj/map/asset/markers/parking-42x36.png differ