add dummy transition to overlay layers

fixes overlay tiles from not being removed while zooming out and back in

addendum to #10785
This commit is contained in:
Martin Raifer
2025-02-19 18:31:42 +01:00
parent 918126e5f8
commit 5d62126530
+9 -1
View File
@@ -4373,13 +4373,21 @@ img.tile {
overflow: hidden;
}
.layer-overlay .img.tile,
.map-in-map-overlay .img.tile {
/* dummy transition such that the `ontransitionend` event can be triggered, see https://github.com/openstreetmap/iD/pull/10785 */
transition: opacity 1ms linear;
}
.layer-background img.tile,
.map-in-map-background img.tile {
filter: url(#alpha-slope5);
}
.layer-background img.tile-removing,
.map-in-map-background img.tile-removing {
.layer-overlay img.tile-removing,
.map-in-map-background img.tile-removing,
.map-in-map-overlay img.tile-removing {
opacity: 0;
z-index: 1;
}