openlayers/ol3 — pull request #1124 by tschaub (2013-10-11 23:21:46+00:00)
Title: Add tileSize and extent to ol.tilegrid.XYZOptions

The XYZ tiling convention assumes the origin is the top-left and z: 0 is a single tile covering some maximum extent.

The current `ol.tilegrid.XYZ` assumes the maximum extent is the EPSG:3857 extent. This should be configurable - and I think it is more general to provide an extent rather than a projection.

The current `ol.tilegrid.XYZ` assumes the tile size is `ol.DEFAULT_TILE_SIZE`. This should be configurable.

The `ol.source.XYZ` accepts a `projection` option, but generated tile grid cannot be configured with this projection's extent.