OpenLayers5加载Geoserver发布的WMS服务(tiff数据)

Geoserver发布的tiff数据,发布后利用openlayers查看,显示数据,url如下:
http://localhost:8080/geoserver/wzf/wms?service=WMS&version=1.1.0&request=GetMap&layers=wzf:geotiff_coverage&styles=&bbox=121.49993249855318,39.71067241015389,121.99703071609827,40.09421986587169&width=768&height=592&srs=EPSG:4326&format=application/openlayers

利用vue-cli搭建工程后,调用MWS服务的代码如下:






你可能感兴趣的:(OpenLayers5加载Geoserver发布的WMS服务(tiff数据))