umap
umap copied to clipboard
[wishlist] Adding a WMS/WMTS layer type
Add the ability to create new layers based on a wms or a wmts web service
Same wish for me ! If possible, it would be great! Thank you beforehand. Sylvain M.
+1 pretty please... event if I understand the amount of work it represent just to handle the layer detection and selection mechanism... as explained in https://leafletjs.com/examples/wms/wms.html.
Not sure why this issue is still open, as this WMTS works a charm: http://tile.informatievlaanderen.be/ws/raadpleegdiensten/wmts?SERVICE=WMTS&REQUEST=GetTile&VERSION=1.0.0&LAYER=omwrgbmrvl&STYLE=&FORMAT=image/png&tileMatrixSet=GoogleMapsVL&tileMatrix={z}&TILEROW={y}&TILECOL={x}
So, does anybody know whether or better to say how wms or wmts might be already possible in umap? I don't know that it would be already, but I don't exactly get @joostschouppe 's comment above. I tried wmts but I didn't work.
can't find a way to import wms either and I think it would be great o/
WMS I don't know, but here's a screenshot of how I set a custom WMTS, with an URL as shown above.

Feel free to play with (and break) this demo: https://umap.openstreetmap.fr/en/map/demo-wmts_877544
Cool, thanks!!!
@joostschouppe Sorry, didn't mean to misunderstand you or something...
Unfortunately, I only have a "basic WMTS" URL for my North Rhine-Westphalia area and I don't know what to add to it or how to modify this URL. Maybe even it's the wrong one, but it's the only one I have, it comes from JOSM...
https://www.wmts.nrw.de/geobasis/wmts_nw_dop
thanks a lot for the screeen :) I have the same issue has @Lukas458 : I can't customs the wms server to follow the xyz url format. And also if I get this right this will change the background but will not allow us to add various wms has layers you can select or not.
Heyho! First of all, the initial feature request is about introducing the possibility to create multiple, switchable map background layers in uMap, in analogy to the custom vector data layers. Isn't it? Indeed, as far as I have worked with uMap, only such custom vector data layers are possible. When wanting a background raster map, you are restricted to what has already been discussed above: you can either choose from predefined OSM-based layers, or you can specify one custom background raster tile service in either XYZ or TMS tiling scheme. But this is then fixed for the current map. If you want to have the possibility to manage a complex layer tree with all different kinds of vector and raster data, I think that this will break the simplicity which uMap is trying to achieve/maintain. Sure, this would be a nice feature. But this quickly gets more complex, where you will end up at level of Leaflet or OpenLayers itself, or you are wanting a "fancy Web GIS" software of which there are various different other products already available (Mapbender, GeoMapFish, MapStore).
Second, when I read this, it seems that there is a lack of understanding of how the standards WMS, WMTS, TMS and "OSM XYZ" work. XYZ and TMS basically follow the same tiling scheme with fix scales etc. and just differ in their y axis being inverted. They can be integrated easily, how @joostschouppe already pointed out. WMTS though is a bit more tricky as it allows custom scales etc. and thus, is not ad hoc queryable with the default XYZ/TMS schema. Your WMTS server has to explicitly support a tile matrix set such as tileMatrixSet=GoogleMapsVL in order to allow being used as XYZ service, like in the above example (I tried it out and it works, just zoom out a bit to the area which is being covered). If your WMTS server does not support such predefined tiling schemas, you will probably not be able to use it in uMap.
WMS is yet another thing, where the map is not returned from a strictly defined tile set, but is rather dynamically rendered ad hoc at each request for the requested zoom level and custom viewport. Supporting also this would be yet again one more layer of complexity and maintenance. Sure, this would also be a nice feature :-).
@michikommader Oh, thank you very much for this clarification, then I certainly know what the "error" is with "my" WMTS link. Thanks!
see #1522
Spend a bit of time to define what needs to do for each format:
- WMF
- WFS
- WMTS
@C-Sophie do you have example of each feeds by chance ?
WMTS: faster, but fewer layers to choose WMS: more layers for “overlay”, as more business layers in WMS. Slightly less efficient WFS: useful, but use with care. With WFS, you can request the entire France vector layer of the cadastre, but you can be sure that it will never be displayed (too long to download, too many parcels to draw). Very interesting for targeted imports. You can retrieve 3 departments at once, for example. You can limit performance-related problems by only requesting the layer to be retrieved for a specific area.
As @joostschouppe indicated on Mar 1, 2023 it is already possible to use a custom map from a WMTS server in uMap.
I created the test map https://umap.osm.ch/m/8860 of Switzerland using the custom background map from the swisstopo WMTS server https://wmts.geo.admin.ch/1.0.0/ch.swisstopo.pixelkarte-farbe/default/current/3857/{z}/{x}/{y}.jpeg and I also added a transparent background with the 1850 commune boundaries with the URL https://wmts.geo.admin.ch/1.0.0/ch.swisstopo.swissboundaries3d-gemeinde-flaeche.fill/default/1850/3857/{z}/{x}/{y}.png
The only problem is that the custom background map becomes the default map for uMap. It's still possible to change the map with the change map button, but this is a major limitation. In my case, I'd really have preferred to be able to choose the default OSM map, leaving the option of displaying the custom map when necessary.
Another limitation is that only one custom map can be added. It would be really useful to be able to add more than one.