[ol.layer.TileLayer] add a getTileSize function

This commit is contained in:
Éric Lemoine
2012-06-22 14:09:57 +02:00
parent cf3da75d83
commit 01668a2748
2 changed files with 21 additions and 0 deletions

View File

@@ -108,6 +108,14 @@ ol.layer.TileLayer.prototype.getExtent = function() {
return null;
};
/**
* Get tile size.
* @return {Array.<number>}
*/
ol.layer.TileLayer.prototype.getTileSize = function() {
return [this.tileWidth_, this.tileHeight_];
};
/**
* Get tile origin.
* @return {Array.<number>}