Replace ol.tilegrid.XYZ with an ol.tilegrid.createXYZ function

This commit is contained in:
Andreas Hocevar
2015-04-28 23:26:35 +02:00
parent a116878a57
commit b05193fa45
16 changed files with 79 additions and 353 deletions

View File

@@ -55,8 +55,8 @@ describe('ol.rendering.layer.Image', function() {
beforeEach(function() {
source = new ol.source.ImageStatic({
url: 'spec/ol/data/tiles/osm/5/5/12.png',
imageExtent: new ol.tilegrid.XYZ({}).getTileCoordExtent(
[5, 5, -12 - 1]),
imageExtent: ol.tilegrid.createXYZ().getTileCoordExtent(
[5, 5, 32 - 12 - 1]),
projection: ol.proj.get('EPSG:3857')
});
});
@@ -91,4 +91,3 @@ goog.require('ol.Map');
goog.require('ol.View');
goog.require('ol.layer.Image');
goog.require('ol.source.ImageStatic');
goog.require('ol.tilegrid.XYZ');