forked from MTSR/mapserver
Prevent POI image from vertically overflowing too much (#395)
This commit is contained in:
parent
3be317d09f
commit
02bb99f739
@ -49,6 +49,12 @@ body {
|
||||
grid-area: info;
|
||||
}
|
||||
|
||||
.poi_image_container {
|
||||
width: 100%;
|
||||
max-height: 75vh;
|
||||
overflow-y: auto;
|
||||
}
|
||||
|
||||
.poi_image {
|
||||
width: 100%;
|
||||
height: auto;
|
||||
|
@ -30,8 +30,9 @@ export default AbstractIconOverlay.extend({
|
||||
}
|
||||
|
||||
if (poi.attributes.image) {
|
||||
innerHTML += "<img class=\"poi_image\" src=\"" + HtmlSanitizer.SanitizeHtml(poi.attributes.image) +
|
||||
"\" crossorigin=\"anonymous\" referrerpolicy=\"origin-when-cross-origin\">";
|
||||
innerHTML += "<div class=\"poi_image_container\">" +
|
||||
"<img class=\"poi_image\" src=\"" + HtmlSanitizer.SanitizeHtml(poi.attributes.image) +
|
||||
"\" crossorigin=\"anonymous\" referrerpolicy=\"origin-when-cross-origin\"></div>";
|
||||
}
|
||||
|
||||
innerHTML += "<hr><b>Owner: </b> " + HtmlSanitizer.SanitizeHtml(poi.attributes.owner) + "<br>";
|
||||
|
Loading…
Reference in New Issue
Block a user