cesium加载ArcGIS Server发布的地图服务(WMS)

 cesium加载代码如下:

var layer='0';
   for(i=1;i<2;i++)
   {
  layer+=','+i
   };
  // console.log(layer);

 var imageryProvider=new Cesium.WebMapServiceImageryProvider({
     url:'http://localhost:6080/arcgis/services/Example/yh/MapServer/WmsServer?',
      layers:layer,
      //crs:'EPSG:4326',
      parameters : {
     service : 'WMS',
      format: 'image/png',
     transparent:true
    },
  });
   viewer.imageryLayers.addImageryProvider(imageryProvider);

 

posted @ 2019-09-02 21:23  敏敏酱  阅读(4941)  评论(0编辑  收藏  举报