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

Feat: WMTS Tile Grid & Source Projections #1046

Merged
merged 6 commits into from
Jul 1, 2024
Merged

Conversation

RobertOrthofer
Copy link
Contributor

@RobertOrthofer RobertOrthofer commented Jun 21, 2024

Implemented changes

This PR brings the possibility to defined tile grids for WMTS sources as well as projections for sources, which could be relevant in this context.

To keep it simple, WMTS tile grid generation has been simplified to the bare minimum. Resolutions are created for all zoom levels, extent has to be defined on the layer level. XYZ tilegrid generation remains unchanged.

For now, this has only been tested for 3857 data, though other projections should work, as long as the projection is registered on the map.

Copy link

netlify bot commented Jun 21, 2024

Deploy Preview for eoxelements ready!

Name Link
🔨 Latest commit a421ffa
🔍 Latest deploy log https://app.netlify.com/sites/eoxelements/deploys/6682664406a91d00082aaa04
😎 Deploy Preview https://deploy-preview-1046--eoxelements.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify site configuration.

@RobertOrthofer RobertOrthofer marked this pull request as ready for review June 21, 2024 19:57
@santilland
Copy link
Member

Awesome, thank you! Could you maybe add one example story? I tested also WGS84 and seems to work fine:

[
  {
      "type": "Tile",
      "properties": {
        "id": "customId"
      },
      "source": {
        "type": "WMTS",
        "url": "https://tiles.maps.eox.at/wmts",
        "layer": "s2cloudless-2018",
        "style": "default",
        "matrixSet": "WGS84",
        "tileGrid": {
          "tileSize": [128, 128]
        }
      }
    }
]

Copy link
Member

@lubojr lubojr left a comment

Choose a reason for hiding this comment

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

Thank you very much for the updates!

@RobertOrthofer RobertOrthofer merged commit d613bd1 into main Jul 1, 2024
7 checks passed
@RobertOrthofer
Copy link
Contributor Author

@lubojr thanks, let me know if your linked PR needs any further adaptations

@lubojr
Copy link
Member

lubojr commented Jul 1, 2024

It is fine and working for integration in eodash (I've tested pasting the exported layer from eodash to the storytelling deployed in the netlify deployment of this PR and it worked fine) Thanks again for the swift additions.

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.

3 participants