How to add WMS Layer from Geoserver on Cesium Globe?

I am trying to add WMS layer from geoserver(version 2.8.1). I can connect Cesium with geoserver,but nothing is displayed on earth. geoserver is running successfully, there is keep flashing information, indicates that the following code is accessing data.there is no any error.

the SRS of layer in geoserver is ‘EPSG:4326’.Is the cause of the coordinate system?

I am not sure, CORS Filter must be installed or not. but I have installed CORS Filter Under guidance of ‘’.Please tell me how to add WMS layer from geoserver.

//my code:

var viewer = new Cesium.Viewer(‘cesiumContainer’);

var imageryLayers = viewer.imageryLayers;

var geoWmsLayer = new Cesium.WebMapServiceImageryProvider({

url: ‘http://localhost:8090/geoserver/sz/wms’,

layers : ‘sz:SZ_region’,

parameters : {

service : ‘WMS’,

version : ‘1.1.0’,

request : ‘GetMap’//,

styles : ‘’,

format : ‘image/png’,

format : ‘application/openlayers’,

srs : ‘EPSG:4326’,

transparent : true


//proxy: new Cesium.DefaultProxy(’/proxy/’)



Please tell me where I went wrong in the code.thank you.

Hello my code:
new Cesium.WebMapServiceImageryProvider({
            url: ‘http://localhost:8090/geoserver/ows’,
            parameters: {
            layers : ‘cartographie:worldMix’,
            maximumLevel : 12
it’s for imagery layer named “worldMix” stored in ‘cartographie’

thank you for your response.why is ‘…geoserver/ows’,not ‘…geoserver/wms’?what is your version of geoserver?
certainly,I kown layers means,It is not the issue.

I tried all sorts of options settings.I think the problem is on geoserver,

I have installed CORS Filter.geoserver servcice is running normal.when I zoom or pan globe,the window of geoserver keep flashing information,but report no any error.

Who can give me any help?

thank you all!

when I copy my code into Sandcastle to run,I get following error:
An error occurred in “WebMapServiceImageryProvider”: Failed to obtain image tile X: 1 Y: 0 Level: 0.

An error occurred in “WebMapServiceImageryProvider”: Failed to obtain image tile X: 0 Y: 0 Level: 0.

An error occurred in “WebMapServiceImageryProvider”: Failed to obtain image tile X: 1 Y: 1 Level: 1.

everybodys says the prolem is CORS.

My MapServer is geoserver 2.8.1,JDK environment is jdk-8u66-windows-x64,Cesium app is issued with windows IIS.I have install the CORS Filter in accordance with the ‘’.

the CORS filter is not work?how enable CORS in geoserver 2.8.1?

I had issues with geoserver as well. Finally had to run geoserver out of tomcat with the tomcat cors filter. Don't know if that is an option for you.

tomcat filter:


cesium code:

    var myLayer=new Cesium.WebMapServiceImageryProvider({
         url: ‘’,
        parameters : {
            transparent : ‘true’,
            tiled : ‘true’,
            format : ‘image/png’,
            tileWidth : 1024,
            tileHeight : 1024,
            maximumLevel : 3,
            enablePickFeatures : false

thank you for reply very much!
when I changed following code:





it work well!

thank you very much!