WMS and Geoserver results in a white screen with Cesium

48 views
Skip to first unread message

darryl....@gmail.com

unread,
Jul 19, 2017, 9:45:49 AM7/19/17
to cesium-dev
I'm hosting my Cesium and Geoserver installs on the same machine: 

And the code I'm using in Cesium is: 

 var viewer = new Cesium.Viewer('cesiumContainer', {
    baseLayerPicker : false
geocoder : false
});

    var myLayer=new Cesium.WebMapServiceImageryProvider({
        parameters : {
            transparent : 'true',
            tiled : 'false',
            format : 'image/png',
            maximumLevel : 0,
            enablePickFeatures : false
        },
        layers:'it.geosolutions:geotiff_coverage'
    });

And the result is Cesium producing a white screen. What did I miss? 

Thank you,
Darryl 

Rachel Hwang

unread,
Jul 21, 2017, 2:59:11 PM7/21/17
to cesium-dev
Hi Darryl,

I don't see anything immeditately wrong. Does the console give any helpful error messages?

Best,
- Rachel

darryl....@gmail.com

unread,
Jul 25, 2017, 12:34:30 PM7/25/17
to cesium-dev
Turns out that I'd called the layer in the wrong place, 

               var viewer = new Cesium.Viewer('cesiumContainer', {

    imageryProvider : new Cesium.WebMapServiceImageryProvider({

                              layers:'it.geosolutions:SRTM_W_250m'

    }),

    baseLayerPicker : false

});

 

 

Thank you!

Darryl


Reply all
Reply to author
Forward
0 new messages