本文主要是介绍Leaflet加载geowebcache的WMTS服务,希望对大家解决编程问题提供一定的参考价值,需要的开发者们随着小编来一起学习吧!
方法1:leaflet.TileLayer.WMTS插件
插件地址https://github.com/alexandre-melard/leaflet.TileLayer.WMTS
用法示例https://hanbo.blog.csdn.net/article/details/80768710
我的示例代码
<!DOCTYPE html>
<html lang="zh">
<head><meta charset="UTF-8"><title data-i18n="resources.title_wmtsLayer"></title><script type="text/javascript" src="../js/include-web.js"></script>
</head>
<body style=" margin: 0;overflow: hidden;background: #fff;width: 100%;height:100%;position: absolute;top: 0;">
<div id="map" style="margin:0 auto;width: 100%;height: 100%"></div>
<script type="text/javascript" src="../../dist/leaflet/include-leaflet.js"></script>
<script src="../js/leaflet-tilelayer-wmts.js"></script>
<scr
这篇关于Leaflet加载geowebcache的WMTS服务的文章就介绍到这儿,希望我们推荐的文章对编程师们有所帮助!