Use the correct TileCoord transform function

This commit is contained in:
Andreas Hocevar
2015-05-22 09:19:59 +02:00
parent acb0a8da53
commit f40aa54c18
3 changed files with 5 additions and 10 deletions
+1 -1
View File
@@ -76,7 +76,7 @@ ol.source.TileJSON.prototype.handleTileJSONResponse = function(tileJSON) {
this.tileGrid = tileGrid;
this.tileUrlFunction = ol.TileUrlFunction.withTileCoordTransform(
tileGrid.createTileCoordTransform({extent: extent}),
ol.tilegrid.createOriginTopLeftTileCoordTransform(tileGrid),
ol.TileUrlFunction.createFromTemplates(tileJSON.tiles));
if (goog.isDef(tileJSON.attribution) &&
+1 -3
View File
@@ -137,9 +137,7 @@ ol.source.TileUTFGrid.prototype.handleTileJSONResponse = function(tileJSON) {
}
this.tileUrlFunction_ = ol.TileUrlFunction.withTileCoordTransform(
tileGrid.createTileCoordTransform({
extent: extent
}),
ol.tilegrid.createOriginTopLeftTileCoordTransform(tileGrid),
ol.TileUrlFunction.createFromTemplates(grids));
if (goog.isDef(tileJSON.attribution)) {