Reputation: 34281
Is it possible to use Leaflet javascript library to show map data from a WMTS (Web Map Tile Service) based server? Leaflet doesn't seem to support WMTS out of the box, but are there any plugins for that?
Upvotes: 6
Views: 6972
Reputation: 2601
You can use the L.TileLayer.WMTS class as implemented here: http://depot.ign.fr/geoportail/api/develop/tech-docs-js/examples/js/geoportalLeaflet.js
Here is the result: http://depot.ign.fr/geoportail/api/develop/tech-docs-js/examples/geoportalLeaflet.html
Upvotes: 7