Expand urls before setting this.urls
This commit is contained in:
committed by
Guillaume Beraudo
parent
d87482e415
commit
af1f2bdda8
@@ -183,8 +183,7 @@ ol.source.UrlTile.prototype.setTileUrlFunction = function(tileUrlFunction) {
|
||||
* @api stable
|
||||
*/
|
||||
ol.source.UrlTile.prototype.setUrl = function(url) {
|
||||
this.urls = [url];
|
||||
var urls = ol.TileUrlFunction.expandUrl(url);
|
||||
var urls = this.urls = ol.TileUrlFunction.expandUrl(url);
|
||||
this.setTileUrlFunction(this.fixedTileUrlFunction ?
|
||||
this.fixedTileUrlFunction.bind(this) :
|
||||
ol.TileUrlFunction.createFromTemplates(urls, this.tileGrid));
|
||||
|
||||
Reference in New Issue
Block a user