# WMT-S support / example

**URL:** <https://community.cesium.com/t/wmt-s-support-example/9170>\
**Category:** CesiumJS\
**Created:** [March 18, 2020, 2:35pm UTC](https://community.cesium.com/t/wmt-s-support-example/9170 "2020-03-18T14:35:19Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![Anne\_Flaherty](https://avatars.discourse-cdn.com/v4/letter/a/b38774/32.png) [@Anne\_Flaherty](https://community.cesium.com/u/Anne_Flaherty)\
**Post date:** [March 18, 2020, 2:35pm UTC](https://community.cesium.com/t/wmt-s-support-example/9170/1 "2020-03-18T14:35:19Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![omar](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/omar/32/1999_2.png) [@omar](https://community.cesium.com/u/omar)\
**Post date:** [March 19, 2020, 12:24pm UTC](https://community.cesium.com/t/wmt-s-support-example/9170/2 "2020-03-19T12:24:04Z")

</div>

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

[https://cesium.com/docs/cesiumjs-ref-doc/WebMapServiceImageryProvider.html?classFilter=WebM#times](https://cesium.com/docs/cesiumjs-ref-doc/WebMapServiceImageryProvider.html?classFilter=WebM#times)

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

---

<div class="post-metadata">

**Author:** ![Anne\_Flaherty](https://avatars.discourse-cdn.com/v4/letter/a/b38774/32.png) [@Anne\_Flaherty](https://community.cesium.com/u/Anne_Flaherty)\
**Post date:** [March 19, 2020, 2:26pm UTC](https://community.cesium.com/t/wmt-s-support-example/9170/3 "2020-03-19T14:26:13Z")

</div>

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](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](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);  
viewer.imageryLayers…addImageryProvider(provider);

---

<div class="post-metadata">

**Author:** ![omar](https://sea2.discourse-cdn.com/cesium/user_avatar/community.cesium.com/omar/32/1999_2.png) [@omar](https://community.cesium.com/u/omar)\
**Post date:** [March 24, 2020, 10:25am UTC](https://community.cesium.com/t/wmt-s-support-example/9170/4 "2020-03-24T10:25:07Z")

</div>

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](https://sandcastle.cesium.com/index.html#c=rVVtb9owEP4rFl8ACZzQalvHS7WJTV2nVqBBV2lCmkxyUKuO7dkOLZ3633d2Xga0lbZpKIL47rnH986GGbLhcAeGjIiEOzIGy/OMfg2yVjMJx7GSjnEJptkhPxeS4MfeqFyk7yXPmIM+cSaHhXxsDxZyIVe5TBxXkqTMsTETYsmS2xaXDsyGiQ7hMoX7dsW0QRccz2BQHPmKtAKAjEYjEtcw//Ew9LP08XMuOJMf8H7q1LlVJ6/jXn0LtU7pdsn5SEBY+HcmZlxN5QP0LwZcbuQu5xw5+4G5hKJJgCdKWke0URuegjkvefcT7o0rzVgJASGDdGVUVjlUXsWLY580j+KjuBv38JnHb/txjM+3qBAeB2FcCafz3qdmp7DfLUp/71QWcN/difaOWPS2vN9tNYbZvMtsxSiZD7x5NTubkbnSqpInmNC1MlvUXV/OKmluBApunNO2H0UZWCXBUbY2GC5nmGysAqR5lKx5d8llhBdFEu4NSyMZm66jqKi4OPp69R/5BNuCsUhXALoegHhX6TEpGozjgJhqENxW+OhTWLFc1MgN8mDeUNGjxzSuxCtlcGBQinOzhkjLdaVxhkmrmQHpinEq5RZbgiewn0MDP3KwnucM3CXTzbLjqsSHGD5OZ2f945NXb+orsMdQcdiIlZFQviGKbUDDCRti8LSB9xv3GpbowKzw8txHZbbTEtk6aCLfXSU/L5AXIeGUpelLpsVK8UsizOGzQ4vOSmgdxvV7cAtrpf/OuNgftcc+ewKXIH1QKpurVmDvkArnc6QEUKHWL3iCu2XmDJfrVvsPDJQ+wPsgQlUwit0ieSr/W1wyLxZbeN/RKF0rlK7lSW58vz1rE76/MLne2ZPjWkYvJpPp99l8Mq0NMux+rgUPDdI7iuN40Og0hmE+TosWe8czrbCGuAJalEYOMi2wBDZa5sktDm1iQ4sMo8pomPIN4elo0Tj4I1o0MBfMWtSsciFm/AEWjdNhhPg9M6FYihmc4DjibHvITe/0ohBSSocRHp9aOaVwIZodxl8) that correctly sets up your time dynamic WMS.

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

---

<div class="post-metadata">

**Author:** ![Anne\_Flaherty](https://avatars.discourse-cdn.com/v4/letter/a/b38774/32.png) [@Anne\_Flaherty](https://community.cesium.com/u/Anne_Flaherty)\
**Post date:** [March 24, 2020, 1:05pm UTC](https://community.cesium.com/t/wmt-s-support-example/9170/5 "2020-03-24T13:05:27Z")

</div>

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/](https://mesonet.agron.iastate.edu/ogc/)
