question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Add support for WMTS tile map service

See original GitHub issue

WMTS is a service for georeferenced maps, served as image tiles. It’s very similar to the TMS specification, which is already supported.

It seems that the only change to the TMS tilesource implementation that’s needed to make it a WMTS implementation is this:

// Original TMS implementation (tmstilesource.js, line 128)
getTileUrl: function( level, x, y ) {
  var yTiles = this.getNumTiles( level ).y - 1;
  return this.tilesUrl + level + "/" + x + "/" + (yTiles - y) + ".png";
}

// Changed to...
getTileUrl: function( level, x, y ) {
  return this.tilesUrl + level + "/" + x + "/" + y + ".png";
}

Therefore I wonder if WMTS could be made a config option to the TMS tilesource?

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:7 (4 by maintainers)

github_iconTop GitHub Comments

1reaction
msalsberycommented, Mar 7, 2021

Even DZI images have an XML “manifest” so I wouldn’t think that’s an issue…

I personally think all tile sources should be plugins so developers can just pull in the ones they use.

Very cool!

1reaction
rsimoncommented, Mar 7, 2021

Hi,

finally revisited this after a long time. In the end, I think it’s not possible to implement useful WMTS support purely with a tilesource.

  1. WMTS have an XML “manifest” which needs to be loaded before, and which defines the properties of the tilesource.
  2. there’s also the issue of dealing with geo-coordinates.

The first issue, I assume, could be handled somehow (after all, IIIF manifests work in a similar way). But because of the second issue, I thought this might be easier/better to handle via a plugin.

I made a first version here: https://github.com/recogito/openseadragon-wmts

Would be interested to hear your feedback!

Read more comments on GitHub >

github_iconTop Results From Across the Web

Add WMTS services—ArcGIS Pro | Documentation
Right-click the WMTS service in the Catalog pane to add the service to the current map or a new map. Expand the WMTS...
Read more >
WMTS - MapTiler Support
This article will help you understand what a Web Map Tile Service ... You will learn how to add WMTS from MapTiler Cloud...
Read more >
To Add an Image from WMTS (Web Map Tile Service)
To Add an Image from WMTS (Web Map Tile Service) · In Display Manager, click Data Connect To Data. · In the Data...
Read more >
Web Map Tile Service (WMTS) - Texas Parks and Wildlife
In order to add the WMTS, open ArcCatalog, within the Catalog tree, expand GIS Servers, and double click "Add WMTS Server".
Read more >
WMTS – OGC Web Map Tile Service — GDAL documentation
Access to WMTS layers is possible with the GDAL WMTS client driver (needs Curl support). It support both RESTful and KVP protocols.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found