Repository navigation
wmts-support, documentation and examples? #1721
Replies: 3 comments 1 reply
|
Hi, My view of the current situation: Unfortunately handling of WMTS-layers is undocumented. My guess is that the lack of documentation stems from the fact that very few (if any) of our users are using WMTS-layers. That being said, the default background in Regarding protected layers, Hajk does not provide ability to add auth info directly to the layers (since this will be visible to the clients). Most Hajk users handles protected layers by using authentication proxies. There are some discussions regarding adding a basic authentication proxy to Hajk backend, but nothing implemented as of yet. In the legacy dotnet utils there is a geoserver proxy that has been used to handle protected geoserver layers. The proxy is legacy and requires deployment on Windows server. Maybe @jacobwod @jesade-vbg @OlofSvahnVbg @Albinahmetaj has more/better info than me? :) |
|
Thanks both @Hallbergs and @jacobwod for your quick replies. I understand better the background then. And I think for my use case, relaying the layers via a geoserver is also possible, since I saw that was another option of how to add layers. The background is that I have produced map layers that some municipalities in Sweden purchase licens to use in their GIS systems, and these are protected with restricted access. Those organisations use origo and arcgis environments. Given some discussions I have had, I wanted to see how easy it would be to add my map layers to the Hajk Map environment as well. Most municipalities that today use our map layers do cache them locally as in their geoservers or similar, and if you do that, then authentication can be solved in that instance. But my experience is that if possible, consuming the wmts-layer directly is often resulting in the best performance. The map layers are available for private use at https://kartor.gokartor.se if you want to have a look at them. |
|
The semi-open WMTS service from Lantmäteriet is still the best option for those needing a free background map for HAJK. And this is what the sample map_1 file always has used. Unfortunately, Lantmäteriet chose to complicate matters and changed the authorization style so that tokens no longer work. This pulled the rug from under a number of public map services that used that WMTS as background. Now you will need to pass the credentials in the html header, which HAJK has no support for. The only solution I have found is setting up an Nginx proxy which passes the credentials to the WMTS service. This change in the WMTS service seems to have gone unnoticed in the HAJK community. Even the netlify demo uses this failed setup and shows a blank map. |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
I am trying out Hajk map and the first thing I am trying is to add a map layer via wmts. I see there is support for it since I can choose that as an option for a layer - but I see no documentation around how to use this? I think I have tried every option I could come up with and still when browsing the Hajk map the map is just blank when choosing that layer. When inspect requests in my browser I don't see requests going to the wmts-source.
All reactions