cesium 加载wms服务

var provider = new window.Cesium.WebMapServiceImageryProvider({
/*url : 'http://ip:8080/geoserver/NOAA_Viirs/wms',*/
url:'http://ip:8084/noaa',
layers : 'NOAA_Viirs:fires_2019',
parameters : {
transparent : true, //是否透明
format : 'image/png',
attribution: "myattribution",
version: '1.1.0',
srs:'EPSG:4326',
CQL_FILTER:fil,
MAP_KEY:'be9a5db1671a659738216ed9f1d255fa',
}
});
/*window.parent.viewer.imageryLayers.addImageryProvider(provider);*/
var image = new window.Cesium.ImageryLayer(provider);
window.huoqingl=image;
window.viewer.imageryLayers.add(image);

posted on 2019-11-11 10:53  苹果园dog  阅读(2218)  评论(0编辑  收藏  举报

导航