Merge pull request #4187 from ahocevar/dashy-tileurl

Fix {-y} template calculation for custom (TMS) tile grids
This commit is contained in:
Andreas Hocevar
2015-10-01 08:11:05 +02:00
6 changed files with 58 additions and 25 deletions

View File

@@ -136,7 +136,8 @@ ol.source.TileUTFGrid.prototype.handleTileJSONResponse = function(tileJSON) {
return;
}
this.tileUrlFunction_ = ol.TileUrlFunction.createFromTemplates(grids);
this.tileUrlFunction_ =
ol.TileUrlFunction.createFromTemplates(grids, tileGrid);
if (tileJSON.attribution !== undefined) {
var attributionExtent = extent !== undefined ?