Make tileSize a config option for ol.source.XYZ

This commit is contained in:
Andreas Hocevar
2014-09-04 11:59:43 -06:00
parent 5de537001f
commit ec00cd3222
3 changed files with 22 additions and 1 deletions

View File

@@ -22,7 +22,8 @@ ol.source.XYZ = function(options) {
var tileGrid = new ol.tilegrid.XYZ({
extent: ol.tilegrid.extentFromProjection(projection),
maxZoom: options.maxZoom
maxZoom: options.maxZoom,
tileSize: options.tileSize
});
goog.base(this, {