WMT-S support / example

In the Cesium sandcastle I see that there is an example of time dynamic WMTS. My question is whether time enabled WMS imagery providers are supported? Is time added as a parameter or in the UrlImageryProvider?

It looks like the WMS provider does take a time interval collection:


Does that work for you? What kind of project are you working on?

I’m trying to display weather data from a WMS. I’ve tried passing in a time interval, but I don’t see time showing up as a parameter in the image requests. I just get the same static image.

const providerInterval = new Cesium.TimeIntervalCollection.fromIso8601({
iso8601: ‘2020-01-01T08:00:00Z/2020-03-01T00:00:00Z/PT1H’});
const providerOptions = {
type: ‘wms’,
name: ‘USGS Topo’,
category: ‘WMS’,
url: ‘https://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r-t.cgi’,
iconUrl: ‘https://mesonet.agron.iastate.edu/cgi-bin/wms/nexrad/n0r-t.cgi’,
layers: ‘nexrad-n0r-wmst’,
properties: {
style: ‘default’,
version: ‘1.3.0’,
format: ‘image/png’,
transparent: true,
service: ‘WMS’,
request: ‘GetMap’
crs: ‘EPSG:3857’,
times: providerInterval,
clock: viewer.clock
const provider = new Cesium.WebMapServiceImageryProvider(providerOptions);

Your time parameter isn’t showing up because you’re missing a data callback. This is where you define what the parameter sent should be called, in this case, Time with a capital T.

Here’s an updated Sandcastle that correctly sets up your time dynamic WMS.

Also, this looks pretty cool - is this an open/public dataset?

Thank you so much. It looks like the data callback was the key.

Yes the data is open; it’s from Iowa State University and they have other data sets here: https://mesonet.agron.iastate.edu/ogc/