We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
Reported via e-mail.
Web WorldWind.WmtsCapabilities does not parse Layer/TileMatrixSetLink/TileMatrixSetLimits/TileMatrixLimits/MaxTileCol from the WMTS GetCapabilities response. The bug is probably caused by "maxTileCol" instead of "MaxTileCol" in the following code from https://files.worldwind.arc.nasa.gov/artifactory/web/0.9.0/worldwind.min.js:formatted
n.assembleTileMatrixLimits = function(t) { for (var e = {}, i = t.children || t.childNodes, r = 0; r < i.length; r++) { var n = i[r]; "TileMatrix" === n.localName ? e.tileMatrix = n.textContent : "MinTileRow" === n.localName ? e.minTileRow = parseInt(n.textContent) : "MaxTileRow" === n.localName ? e.maxTileRow = parseInt(n.textContent) : "MinTileCol" === n.localName ? e.minTileCol = parseInt(n.textContent) : "maxTileCol" === n.localName && (e.maxTileCol = parseInt(n.textContent)) } return e }
Steps to reproduce the behavior:
Fetch a WMTS GetCapabilities URL that contains TileMatrixLimits nodes with MaxTileCol.
Turn the XML text into a document object:
var domparser = new DOMParser(); var xml_doc = domparser.parseFromString(text, "text/xml");
Use WorldWind.WmtsCapabilities to parse the XML document object.
var capabilities = new WorldWind.WmtsCapabilities(xml_doc);
All maxTileCol will be missing from all objects in all tileMatrixLimits arrays.
maxTileRow, minTileCol, minTileRow, and tileMatrix will be present and set.
Expected behavior
maxTileCol should be present and set so it can be used to limit the GetTile requests to only those tiles that the WMTS server says are available.
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Reported via e-mail.
Web WorldWind.WmtsCapabilities does not parse Layer/TileMatrixSetLink/TileMatrixSetLimits/TileMatrixLimits/MaxTileCol from the WMTS GetCapabilities response. The bug is probably caused by "maxTileCol" instead of "MaxTileCol" in the following code from https://files.worldwind.arc.nasa.gov/artifactory/web/0.9.0/worldwind.min.js:formatted
Steps to reproduce the behavior:
Fetch a WMTS GetCapabilities URL that contains TileMatrixLimits nodes with MaxTileCol.
Turn the XML text into a document object:
Use WorldWind.WmtsCapabilities to parse the XML document object.
All maxTileCol will be missing from all objects in all tileMatrixLimits arrays.
maxTileRow, minTileCol, minTileRow, and tileMatrix will be present and set.
Expected behavior
maxTileCol should be present and set so it can be used to limit the GetTile requests to only those tiles that the WMTS server says are available.
The text was updated successfully, but these errors were encountered: