Issue in loading NASA's WMS Service

1. A concise explanation of the problem you’re experiencing.

I am loading WMS Service from NASA Image Server. It’s not loading properly.

What is the error?. What I need to change ?.

2. A minimal code example. If you’ve found a bug, this helps us reproduce and repair it.

var provider = new WebMapServiceImageryProvider({

url: “http://svs.gsfc.nasa.gov/cgi-bin/wms”,

//?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetMap&LAYERS=3487_12773&FORMAT=image/png&WIDTH=1024&HEIGHT=512&CRS=CRS:84&BBOX=-180.0,-90.0,180.0,90.0&STYLES=

layers: ‘3487_12773’,

proxy: new DefaultProxy(’/proxy/’),

parameters: {

version: ‘1.3.0’,

format: ‘image/png’,

width: 1024,

height: 512,

crs: ‘CRS:84’,

bbox: ‘-180.0,-90.0,180.0,90.0’

}

});

console.log(provider);

viewer.imageryLayers.addImageryProvider(provider);

Above is the code I am used. Here If I am not giving height, width, crs, bbox , It’s not ven loading like above scrrenshot.

3. Context. Why do you need to do this? We might know a better way to accomplish your goal.

4. The Cesium version you’re using, your operating system and browser.

Cesium1.66, Windows 10, Chrome

Can you provide a Sandcastle example that produces that first image?

You can go here https://sandcastle.cesium.com/ and then create your example, and click “share” at the top and paste the link here.

Hi Omar,

Find below sandcastle link:

I don’t see any imagery loading in that example. It appears that the server is returning CORS errors, which means it’s not configured to allow external requests.

Is there a web-page that describes this WMS resource and what license it’s available under etc?

Hi Omar,

If you could not load (CORS Issue) in normal chrome browser, run in “disable web secrity”.

“[PATH_TO_CHROME]\chrome.exe” --disable-web-security --user-data-dir=~/chromeTemp

ref: https://alfilatov.com/posts/run-chrome-without-cors/