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

bugfix getting first layer

parent 491d4c7b
...@@ -339,7 +339,7 @@ L.TimeDimension.Layer.WMS.Picasso = L.TimeDimension.Layer.WMS.extend({ ...@@ -339,7 +339,7 @@ L.TimeDimension.Layer.WMS.Picasso = L.TimeDimension.Layer.WMS.extend({
}, },
_getLayerForTime: function(time) { _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; return this._baseLayer;
} }
if (this._layers.hasOwnProperty(time)) { if (this._layers.hasOwnProperty(time)) {
......
This diff is collapsed.
This diff is collapsed.
Supports Markdown
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