No extent magic

Setting the extent on a tile source now only means that tiles
won't be drawn outside that extent. Now the only way to specify
the origin of the tile grid is to provide a custom tileGrid. By
default, the grid origin is the top left corner of the
projection's extent.
This commit is contained in:
ahocevar committed 2012-10-27 17:28:08 +02:00
1 parent b872b5a74f
commit e5308fec40
2 files changed
+4 -5

No files matched your search

+2 -1
View File
@@ -22,7 +22,8 @@ var layers = new ol.Collection([
source: new ol.source.TiledWMS({
url: 'http://demo.opengeo.org/geoserver/wms',
crossOrigin: null,
params: {'LAYERS': 'topp:states', 'TILED': true}
params: {'LAYERS': 'topp:states', 'TILED': true},
extent: new ol.Extent(-13884991, 2870341, -7455066, 6338219)
})
})
]);