Commit 491d4c7b authored by Tomas Pettersson's avatar Tomas Pettersson 🏸

bugfix getting first layer

parent d9866ff1
......@@ -125,7 +125,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)) {
......
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