Commit 47839d5d authored by Tomas Pettersson's avatar Tomas Pettersson 🏸

move zoom fix

parent ca35034d
......@@ -339,7 +339,7 @@ L.TimeDimension.Layer.WMS.Picasso = L.TimeDimension.Layer.WMS.extend({
},
getEvents : function(){
var clearCache = L.bind(this.clear, this);
var clearCache = L.bind(this.clearMoveZoom, this);
return {
moveend: clearCache,
zoomend: clearCache
......@@ -355,6 +355,13 @@ L.TimeDimension.Layer.WMS.Picasso = L.TimeDimension.Layer.WMS.extend({
}
},
clearMoveZoom : function() {
for (var prop in this._layers) {
delete this._layers[prop];
}
},
_getLayerForTime: function(time) {
if (time == 0 || time == this._defaultTime || time == null || this._refTime == 0) {
return this._baseLayer;
......
This diff is collapsed.
This diff is collapsed.
......@@ -125,7 +125,7 @@ L.TimeDimension.Layer.WMS.Picasso = L.TimeDimension.Layer.WMS.extend({
},
getEvents : function(){
var clearCache = L.bind(this.clear, this);
var clearCache = L.bind(this.clearMoveZoom, this);
return {
moveend: clearCache,
zoomend: clearCache
......@@ -141,6 +141,13 @@ L.TimeDimension.Layer.WMS.Picasso = L.TimeDimension.Layer.WMS.extend({
}
},
clearMoveZoom : function() {
for (var prop in this._layers) {
delete this._layers[prop];
}
},
_getLayerForTime: function(time) {
if (time == 0 || time == this._defaultTime || time == null || this._refTime == 0) {
return this._baseLayer;
......
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