yangyanggu / vue-amap

高德地图封装 for vue2 vue3.0
https://vue-amap.guyixi.cn/
MIT License
252 stars 13 forks source link

WMTS bug #44

Closed edoclin closed 1 year ago

edoclin commented 1 year ago

使用版本

请填写使用版本: dev

问题描述

WMTS组件实际调用的 AMap.TileLayer.WMS

解决方案

src/vue-amap/packages/layer/standard/WMTS/WMTS.vue line32:

replace("this.$amapComponent = new AMap.TileLayer.WMS(options)", "this.$amapComponent = new AMap.TileLayer.WMTS(options)")

test/views/layer/Standard.vue line22:

replace(":param="params"", ":params="params"")
yangyanggu commented 1 year ago

使用最新版本,已修复

edoclin commented 1 year ago

感谢作者!注意身体! 有时间可以把test/views/layer/Standard.vue也修复下,因为使用您的test案例调试发现params一直为空,最后发现是参数名拼写错误.

yangyanggu commented 1 year ago

可以,这个不急着改,或者你也可以提pr处理下这个小问题