Skip to content
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions src/css/position.css
Original file line number Diff line number Diff line change
Expand Up @@ -570,6 +570,23 @@
margin-top: 3px;
}

.monumentsHistoriquesImageAuthor a {
color: var(--mid-grey);
}

.monumentsHistoriquesImageAuthor a::after {
content: "";
display: inline-block;
background-image: url("assets/external-link.svg");
width: 1.5em;
height: 1em;
background-size: 1.2em;
background-position: center;
background-repeat: no-repeat;
background-size: 0.8em;
background-position: bottom;
}

.monumentsHistoriquesContent {
font-family: "Open Sans";
}
Expand Down Expand Up @@ -659,3 +676,9 @@
-webkit-mask-repeat: no-repeat;
mask-repeat: no-repeat;
}

.panoramaxPoiImg {
display: flex;
flex-direction: column;
padding-left: 15px;
}
5 changes: 5 additions & 0 deletions src/js/map-interactivity/feature-property-filter.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,11 @@ const featurePropertyFilter = (feature) => {
let web = getProperty(feature, "web");
let telephone = getProperty(feature, "telephone");
let horaire = getProperty(feature, "horaire");
let panoramax = getProperty(feature, "panoramax");
if (panoramax) {
result.after += `<p class="panoramaxPoiImg"><img class="unescoimg" src="https://api.panoramax.xyz/api/pictures/${panoramax}/thumb.jpg" width="200px">`;
result.after += "<span class=\"monumentsHistoriquesImageAuthor\">Image issue du projet <a href=\"https://panoramax.fr\" target=\"_blank\">Panoramax</a></span></p>";
}
if (horaire) {
try {
result.after += `<p class="positionHours positionInfo">Horaire : ${parseOsmOpeningHours(horaire)}</p>`;
Expand Down