New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ol.source.Zoomify initiates immediate image load bypassing setTileUrlFunction() #15577
Comments
Allowing a less restrictive url for Zoomify would be useful as not all sources are standard compliant, see #14760 (comment) To property handle DZI sources I think a |
While getting Zoomify to work for DeepZoom I was thinking how it could better support it, I would maybe suggest:
It should just be a case of setting openlayers/src/ol/source/Zoomify.js Line 68 in 2a6dd0f
|
Zoomify uses a custom tile class to handle oversized tiles which works regardless of the actual size served - artefacts would only be noticeable using the source with a WebGL tile layer. Using a gutter would avoid that, however gutter is also used to allow interpolation across tile edges #15478 (comment) and assumes all tiles are equally oversized. Maybe the custom tile class should, instead of truncating tiles, ensure all tiles are equally oversized? |
Describe the bug
ol.source.Zoomify
initiates an image load to the default URL template on initializationopenlayers/src/ol/source/Zoomify.js
Line 272 in 2a6dd0f
This bypasses the use of
setTileUrlFunction()
to handle URL generation manually and immediately fires a request to the wrong URL scheme which will fail, (reverting totileWidth = tileSize
).To Reproduce
Steps to reproduce the behavior:
setTileUrlFunction()
Expected behavior
Given that
tilePixelRatio
is a constructor option, I am not sure why the Zoomify class is taking it upon itself performing this check, especially as it is causing an unnecessary XHR request.If it must be retained for backwards compatibility could the check be disable-able via a constructor option flag e.g.
serverRetinaTileDetection: true|false
?Specially I am using the
Zoomify
class to load DeepZoom source image which have additional pyramids at the top so the URLs have to be altered to account for this offset in the{z}
direction.The text was updated successfully, but these errors were encountered: