show spinner while loading non-360° "vegbilder" photos

This commit is contained in:
Martin Raifer
2023-08-02 16:28:49 +02:00
parent 23d19e89ff
commit 31c5a60ac2
2 changed files with 5 additions and 0 deletions

View File

@@ -419,6 +419,9 @@ label.streetside-hires {
overflow: hidden;
height: 100%;
width: 100%;
background-image: url(img/loader-black.gif);
background-position: center;
background-repeat: no-repeat;
}
.vegbilder-wrapper .plane-frame > img.plane-photo{
@@ -447,6 +450,7 @@ label.streetside-hires {
.photo-controls button:focus {
height: 18px;
width: 18px;
line-height: 18px;
background: rgba(0,0,0,0.65);
color: #eee;
border-radius: 0;

View File

@@ -86,6 +86,7 @@ export default {
},
selectPhoto: function (data, keepOrientation) {
loadImage(_photo, '');
loadImage(_photo, data.image_path)
.then(() => {
if (!keepOrientation) {