OpenLayers加载GeoServer瓦片
以下是我觉得很有帮助的几篇文章 希望可以帮助到大家
openlayers官网:https://openlayers.org/
openlayers实战:http://www.voidcn.com/article/p-bdckckhs-un.html
使用:https://blog.csdn.net/weixin_40184249/article/details/84615192
博主说这是加载WMTS/WMS的最新使用方法,我暂时没用这种,待验证:https://blog.csdn.net/a571574085/article/details/107640918?utm_medium=distribute.pc_relevant.none-task-blog-BlogCommendFromBaidu-1.control&depth_1-utm_source=distribute.pc_relevant.none-task-blog-BlogCommendFromBaidu-1.control
知乎上GIS专栏还有一些分享原的文章,有空值得研究.
大部分数据信息都可以在生成切片的代码中找到,值得注意的是:baseUrl在官方文档中为'..service/wmts' 写成这样是不可以的,正确的baseUrl应该为:地址+端口号一直到demo之前
以下是我的代码 如有错误,请指正,谢谢!