最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

javascript - Using Leaflet with WMTS server? - Stack Overflow

programmeradmin0浏览0评论

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?

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?

Share Improve this question edited Sep 18, 2012 at 3:56 Juha Syrjälä asked Sep 17, 2012 at 20:29 Juha SyrjäläJuha Syrjälä 34.3k33 gold badges136 silver badges189 bronze badges
Add a ment  | 

1 Answer 1

Reset to default 7

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

发布评论

评论列表(0)

  1. 暂无评论