socib / Leaflet.TimeDimension

Add time dimension capabilities on a Leaflet map.
MIT License
435 stars 138 forks source link

Unable to load the examples #178

Closed indeOWS closed 4 years ago

indeOWS commented 4 years ago

Hi @bielfrontera Thank you very much for this great work. I have tried to run example4 http://apps.socib.es/Leaflet.TimeDimension/examples/example4.html, but the API won't load the wmsLayer (https://nowcoast.noaa.gov/arcgis/services/nowcoast/radar_meteo_imagery_nexrad_time/MapServer/WMSServer). My API is just showing OSM baseLayer. Any help on that will be very appreciated. I appreciated your time in advance. Kind regards

bielfrontera commented 4 years ago

Hi @juliermegeotube, I've checked the response of the getCapabilities request at nowcoast (see https://nowcoast.noaa.gov/arcgis/services/nowcoast/radar_meteo_imagery_nexrad_time/MapServer/WMSServer?SERVICE=WMS&VERSION=1.3.0&REQUEST=GetCapabilities ).

There is a problem with the value of the dimension time (in this moment the value is "2019-10-15T03:20:00.000Z/2019-10-15T08:25:00.000Z/"). TimeDimension expects a duration as the third component in this expression. However it's empty! And TimeDimension is not able to transform this expression in an array of available times for this layer.

We will probably have to modify the process to obtain this information, in order to manage this kind of expression (taking the duration from a new option of the layer). Meanwhile, you can set by hand the available times of the layer before adding it to the map.