What is the right way to show an ArcGIS Server WMTS layer using Leaflet?

834
1
Jump to solution
09-02-2022 12:48 AM
Labels (1)
winnewoerp
New Contributor

We are trying to use a WMTS layer provided by the city of Kiel using ArcGIS Server. See this fiddle: https://jsfiddle.net/winnewoerp/p70mcn81/34/

See XML data here: https://ims.kiel.de/geodatenextern/rest/services/Basis_Internet/Internet_basis_grau/MapServer/WMTS?r...

As you can see, we're currently not using the correct CRS (EPSG:4647) to display these tiles within the above JS fiddle:
https://ims.kiel.de/geodatenextern/rest/services/Basis_Internet/Internet_basis/MapServer/WMTS/tile/1...
So no wonder things get messed up. But we didn't find a solution to display the tiles using EPSG:4647.

We're not sure if this is an ESRI issue or rather related to Leaflet (version conflict?) or Proj4/Proj4Leaflet. Any hints that point us to the right direction are welcome. Thank you!

0 Kudos
1 Solution

Accepted Solutions
winnewoerp
New Contributor

Solved! It was not an issue related to ArcGIS server but had to do with Proj4 coordinate order. Here's a new fiddle:

https://jsfiddle.net/winnewoerp/p70mcn81/82/

View solution in original post

1 Reply
winnewoerp
New Contributor

Solved! It was not an issue related to ArcGIS server but had to do with Proj4 coordinate order. Here's a new fiddle:

https://jsfiddle.net/winnewoerp/p70mcn81/82/