New extent structure for TileJSON

The change in e806f51b3d neglected to correct the extent handling for the TileJSON source.
This commit is contained in:
Tim Schaub
2013-09-15 22:22:20 -06:00
parent b192335e56
commit 97d614285e

View File

@@ -75,12 +75,9 @@ ol.source.TileJSON.prototype.handleTileJSONResponse = function() {
var extent;
if (goog.isDef(tileJSON.bounds)) {
var epsg4326Extent = [
tileJSON.bounds.slice(0, 2), tileJSON.bounds.slice(2)
];
var transform = ol.proj.getTransformFromProjections(
epsg4326Projection, this.getProjection());
extent = ol.extent.transform(epsg4326Extent, transform);
extent = ol.extent.transform(tileJSON.bounds, transform);
this.setExtent(extent);
}