Closed aaa1729511481 closed 1 month ago
根据官网例子:https://l7.antv.antgroup.com/examples/tile/basemap#wms copy到项目中,第37行WMS地址更换为公司地图服务器Geoserver导出的png数据(http://203.56.192.140/geoserver/sn2/wms?service=WMS&version=1.1.0&request=GetMap&layers=sn2%3Avegetable&bbox=105.6701407070002%2C30.31957705100018%2C105.76017704100018%2C30.44515179400018&width=550&height=768&srs=EPSG%3A4326&styles=&format=image%2Fpng) ,运行项目时出现地图被png数据平铺占满,地图缩放时会跟随铺满。使用OpenLayers格式时,提示:Could not load image because of The source image could not be decoded.. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported。
期望 :能支持Geoserver导出的格式 @antv/l7": "^2.21.10 @antv/l7-maps": "^2.21.10 图一:使用png格式 图二:使用Openlayers格式 图三:代码 ![Uploading 2.png…]()
Hi @aaa1729511481, Please star this repo if you find it useful! Thanks :star:! 你好~ @aaa1729511481 🌟 如果这个仓库对你有帮助,可以给我们点个star支持一下~你的支持对我们来说是最大的鼓励,感谢你的支持与点赞 🌟
根据官网例子:https://l7.antv.antgroup.com/examples/tile/basemap#wms
copy到项目中,第37行WMS地址更换为公司地图服务器Geoserver导出的png数据(http://203.56.192.140/geoserver/sn2/wms?service=WMS&version=1.1.0&request=GetMap&layers=sn2%3Avegetable&bbox=105.6701407070002%2C30.31957705100018%2C105.76017704100018%2C30.44515179400018&width=550&height=768&srs=EPSG%3A4326&styles=&format=image%2Fpng) ,运行项目时出现地图被png数据平铺占满,地图缩放时会跟随铺满。使用OpenLayers格式时,提示:Could not load image because of The source image could not be decoded.. Please make sure to use a supported image type such as PNG or JPEG. Note that SVGs are not supported。
期望 :能支持Geoserver导出的格式 @antv/l7": "^2.21.10 @antv/l7-maps": "^2.21.10 图一:使用png格式 图二:使用Openlayers格式 图三:代码 ![Uploading 2.png…]()