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

Geoserver发布的shp数据,发布后利用openlayers查看,显示数据,url如下:
http://localhost:8080/geoserver/wzf/wms?service=WMS&version=1.1.0&request=GetMap&layers=wzf:wafangdianshi_0&styles=&bbox=121.22186889019105,39.319356535867506,122.28293489092715,40.126082759038326&width=768&height=583&srs=EPSG:4326&format=application/openlayers
利用vue-cli搭建工程后,调用MWS服务的代码如下:






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