gpxstudio.github.io
gpxstudio.github.io copied to clipboard
WMTS vs WMS URLS
I enjoy very much the possibilities of using WMTS URLS for adding my own overlays. I did found a few sources that are instead using BBOX as a parameter to request one map at a time as opposed to tiles provided by a Z Y X type of URL.
Here is an example of a governmental service that allows to fetch maps (overlays) in a slightly different fashion than WMTS:
https://servicesvecto3.mern.gouv.qc.ca:443/geoserver/SmartFaunePub/ows?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&BBOX=-8647731.193368177861,5562951.170885351487,-7427940.016896469519,6458985.581245779991&CRS=EPSG:3857&WIDTH=986&HEIGHT=725&LAYERS=Chasse_Interdite&STYLES=&FORMAT=image/png&DPI=96&MAP_RESOLUTION=96&FORMAT_OPTIONS=dpi:96&TRANSPARENT=TRUE
How hard would it be to allow users to specify which protocol their custom overlay/base maps might be? (WMS vs WMTS)
Here is an example of a use case where this could be interesting to have. The below image shows a background map that uses regular XYZ tiles, while the overlay shows snow accumulation fetched from another location that is provided as a WMS service:
Leaflet already supports WMS sources so I guess it would be quite easy to implement.