parkg and popup update

This commit is contained in:
ed barz 2022-06-01 12:01:36 +02:00
parent 52a06c6bc1
commit c9e6fbe473
5 changed files with 714 additions and 646 deletions

View File

@ -246,7 +246,7 @@ div.leaflet-popup-tip {
background-color: var(--b9h-color-fg); background-color: var(--b9h-color-fg);
font-family: Inter; font-family: Inter;
font-weight: 400; font-weight: 400;
font-size: 1rem; font-size: 0.8rem;
text-align: center; text-align: center;
padding-top: 5px; padding-top: 5px;
} }
@ -374,4 +374,12 @@ section.card div h3.cardtitle {
section.restomenu div.dish { section.restomenu div.dish {
margin-left: 20px; margin-left: 20px;
}
a.leaflet-popup-close-button {
display: none;
}
div.leaflet-popup.leaflet-zoom-animated {
bottom: -15px !important;
} }

View File

@ -12,6 +12,8 @@ var jdb = {
nameIT : "Parcheggio", nameIT : "Parcheggio",
sub : { sub : {
ParkingLamy, ParkingLamy,
ParkingStephanie,
ParkingPantiero,
} }
}, },
resto : { resto : {

View File

@ -68,7 +68,7 @@ var markoTrainIcon = L.icon({
var marker = L.marker(hotelxy, { var marker = L.marker(hotelxy, {
icon: markPointerIcon, icon: markPointerIcon,
draggable : false, draggable : true,
}).addTo(map); }).addTo(map);
marker.bindPopup("Hôtel Molière"); marker.bindPopup("Hôtel Molière");
@ -114,6 +114,7 @@ Object.entries(parking).forEach(p => {
p[1]['marker'] = L.marker(p[1]['xy'], { p[1]['marker'] = L.marker(p[1]['xy'], {
icon: markParkingIcon, icon: markParkingIcon,
}).addTo(layzls[p[1]['minz']]); }).addTo(layzls[p[1]['minz']]);
p[1]['marker'].bindPopup(p[1]['name'])
p[1]['marker'].on('click', function(e) { p[1]['marker'].on('click', function(e) {
jdb.data.db.parking.isActive = true jdb.data.db.parking.isActive = true
p[1]['isActive'] = true p[1]['isActive'] = true

View File

@ -8,9 +8,9 @@ let ParkingLamy = {
img: "https://ed.brz9.dev/proj/map/asset/img/lamy.jpg", img: "https://ed.brz9.dev/proj/map/asset/img/lamy.jpg",
type: "item", type: "item",
name: "Parking Lamy", name: "Parking Lamy",
txtFR: "Parking public souterrain, situé à 3 minutes à pied de l'hôtel. Hauteur maximum: 1,9 m.", txtFR: "Parking public souterrain, situé à 3 minutes à pied de l'hôtel. Hauteur maximum: 1,9m.",
txtEN: "Underground public parking, located 3 minutes walk from the hotel. Maximum height: 1,9 m.", txtEN: "Underground public parking, located 3 minutes walk from the hotel. Maximum height: 1,9m.",
txtIT: "Parcheggio pubblico sotterraneo, situato a 3 minuti a piedi dall'hotel. Altezza massima: 1,9 m.", txtIT: "Parcheggio pubblico sotterraneo, situato a 3 minuti a piedi dall'hotel. Altezza massima: 1,9m.",
card: { card: {
tabs: { tabs: {
info: { info: {
@ -22,8 +22,65 @@ let ParkingLamy = {
address: "121 rue d'Antibes - 06400 Cannes", address: "121 rue d'Antibes - 06400 Cannes",
tel: "+33 4 89 82 23 23", tel: "+33 4 89 82 23 23",
email: "cannesparking@ville-cannes.fr", email: "cannesparking@ville-cannes.fr",
} }
} }
} }
} }
let ParkingStephanie = {
id: "parkingstephanie",
isActive: true,
xy: [-26.55,48.95],
dirxy: [-22.99,48.76],
dirzl: 5,
minz: 4,
img: "https://ed.brz9.dev/proj/map/asset/img/parking-palais-stephanie.jpg",
type: "item",
name: "Parking Palais Stéphanie",
txtFR: "Parking public souterrain, situé à 1 minute à pied de l'hôtel. Hauteur maximum: 1,9m.",
txtEN: "Underground public parking, located 1 minute walk from the hotel. Maximum height: 1,9m.",
txtIT: "Parcheggio pubblico sotterraneo, situato a 1 minuto a piedi dall'hotel. Altezza massima: 1,9m.",
card: {
tabs: {
info: {
tabtype: "info",
site: "https://www.interparking.fr/fr-FR/find-parking/PalaisStephanie/",
handi: "yes",
hautmax: "1,9 m",
address: "Rdpt Duboys d'Angers - 06400 Cannes",
tel: "+33 9 70 140 111",
email: "contact-france@interparking.com",
}
}
}
}
let ParkingPantiero = {
id: "parkingpantiero",
isActive: true,
xy: [-27.68,-13.36],
dirxy: [-24.52,2.72],
dirzl: 3,
minz: 3,
img: "https://ed.brz9.dev/proj/map/asset/img/parking-pantiero.jpg",
type: "item",
name: "Parking Pantiero",
txtFR: "Parking public souterrain, situé à 15 minutes à pied de l'hôtel. Hauteur maximum: 2,4m.",
txtEN: "Underground public parking, located 15 minutes walk from the hotel. Maximum height: 2,4m.",
txtIT: "Parcheggio pubblico sotterraneo, situato a 15 minuti a piedi dall'hotel. Altezza massima: 2,4m.",
card: {
tabs: {
info: {
tabtype: "info",
site: "https://www.cannes.com/fr/mairie/annuaire-pratique/equipements-municipaux/p4-parking-pantiero.html",
handi: "yes",
hautmax: "2,4 m",
wifi: "yes",
address: "Promenade de La Pantiero - 06400 Cannes",
tel: "+33 4 89 82 23 23",
email: "cannesparking@ville-cannes.fr",
}
}
}
}

File diff suppressed because it is too large Load Diff