patch error while loading an image as tiled image where the highest zoom level can not be determined

This commit is contained in:
stefan.heinze 2024-03-07 13:32:26 +01:00
parent a42a0d1822
commit ded886bcfe

View File

@ -1299,6 +1299,10 @@ $.extend($.TiledImage.prototype, $.EventSource.prototype, /** @lends OpenSeadrag
))
);
if (!highestLevel) {
highestLevel = 0;
}
// Calculations for the interval of levels to draw
// can return invalid intervals; fix that here if necessary
highestLevel = Math.max(highestLevel, this.source.minLevel || 0);