Commit 257844fa authored by Tomas Pettersson's avatar Tomas Pettersson 🏸

bugfix getting first layer

parent 491d4c7b
......@@ -339,7 +339,7 @@ L.TimeDimension.Layer.WMS.Picasso = L.TimeDimension.Layer.WMS.extend({
},
_getLayerForTime: function(time) {
if (time == 0 || time == this._defaultTime || time == null) {
if (time == 0 || time == this._defaultTime || time == null || this._refTime == 0) {
return this._baseLayer;
}
if (this._layers.hasOwnProperty(time)) {
......
This diff is collapsed.
This diff is collapsed.
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment