Skip to content
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

Fix 7296 wmts #7371

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open

Fix 7296 wmts #7371

wants to merge 3 commits into from

Conversation

zoran995
Copy link
Collaborator

What this PR does

Fixes #7296, #2927, #1573

Extended OWS common interfaces lists and added support for reading the URL from operations metadata.

Test me

Try adding data using the init file https://gist.githubusercontent.com/zoran995/10169b47c7c7191f4795b56878c3d9c4/raw/0a9cdbc3bdde67cec67ae4fdcd5f8a370b702161/terriajs-7296-config.json
I have also tested using New Zealand LINZ data service mentioned in #2927

Checklist

  • There are unit tests to verify my changes are correct or unit tests aren't applicable (if so, write quick reason why unit tests don't exist)
  • I've updated relevant documentation in doc/.
  • I've updated CHANGES.md with what I changed.
  • I've provided instructions in the PR description on how to test this PR.

: [layer.ResourceURL];

if (resourceUrls && (this.requestEncoding === "RESTful" || !url)) {
for (let i = 0; i < resourceUrls.length; i++) {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could for (const resourceUrl of resourceUrls) { be used to iterate over the content so the next line can be omitted, or is there some JavaScript-reason to always use index-based iterations in TypeScript?

Same comment for the other for-loops where the index is only used to get the element.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

wrong WMTS GetTile requests for some WMTS servers
2 participants