cesium 加载geoserver wms服务

代码如下

//加载geoserverwms
    var wmslayer = new Cesium.WebMapServiceImageryProvider({
      url:"http://localhost:8880/geoserver/postgis/wms",
      layers:'postgis:ceshi0606',
      parameters: {
        transparent: true,
        format: "image/png",
        srs: "EPSG:4490",
        // 非必填
        styles: "",
      },
    });
    imageryLayers.addImageryProvider(wmslayer);

 

posted @ 2023-10-26 17:46  小鱼写代码的过往  阅读(274)  评论(0编辑  收藏  举报