socib / Leaflet.TimeDimension

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

Two wms layers in one timedimension with different availableTimes #147

Open pineapplegum opened 6 years ago

pineapplegum commented 6 years ago

I would like to show two wms services in one timedimension, where the first layer has availableTimes for the first hour, and the second has available times for the second hour. This works, but when the current time is updated, a wms request is sent to both layers. Of course, only one of the layers has any data for that given point in time, so I therefore get an error from the other request that failed.

Is it somehow possible to use different available times for the two layers? Or, alternatively, can I at least catch the error that I'm getting?