Update TileWMS.coordKeyPrefix_ on setUrls
Outdated coordKeyPrefix_ causes the TileWMS layer to flicker on the first updateParams call.
This commit is contained in:
@@ -355,6 +355,14 @@ ol.source.TileWMS.prototype.fixedTileUrlFunction = function(tileCoord, pixelRati
|
||||
pixelRatio, projection, baseParams);
|
||||
};
|
||||
|
||||
/**
|
||||
* @inheritDoc
|
||||
*/
|
||||
ol.source.TileWMS.prototype.setUrls = function(urls) {
|
||||
ol.source.TileImage.prototype.setUrls.call(this, urls);
|
||||
this.resetCoordKeyPrefix_();
|
||||
};
|
||||
|
||||
|
||||
/**
|
||||
* Update the user-provided params.
|
||||
|
||||
Reference in New Issue
Block a user