nrenner / brouter-web

Web client for BRouter, a routing engine based on OpenStreetMap
https://brouter.de/brouter-web/
MIT License
374 stars 74 forks source link

WMS and extended WMTS support #337

Open tanrak opened 4 years ago

tanrak commented 4 years ago

Hi, would it be possible to integrate WMS/WMTS as user defined layer?

nrenner commented 4 years ago

A WMTS service compatible with the OSM/Leaflet tile definition and projection should work, like that: http://gpp3-wxs.ign.fr/6qyeeg75b526mac4g4qmjazn/wmts?LAYER=GEOGRAPHICALGRIDSYSTEMS.MAPS.SCAN-EXPRESS.STANDARD&EXCEPTIONS=text/xml&FORMAT=image/jpeg&SERVICE=WMTS&VERSION=1.0.0&REQUEST=GetTile&STYLE=normal&TILEMATRIXSET=PM&&TILEMATRIX={z}&TILEROW={y}&TILECOL={x} or https://sgx.geodatenzentrum.de/wmts_topplus_open/tile/1.0.0/web/{Style}/{TileMatrixSet}/{TileMatrix}/{TileRow}/{TileCol}.png as https://sgx.geodatenzentrum.de/wmts_topplus_open/tile/1.0.0/web/default/WEBMERCATOR/{z}/{y}/{x}.png

WMS and extended WMTS support would require choosing and extending one or two Leaflet plugins.

See #294.

tanrak commented 4 years ago

Thanks for the explanation.