Set ol.layer.Tile#getSource return type to ol.source.Tile

This commit is contained in:
Frederic Junod
2014-08-29 10:45:30 +02:00
parent 009cd9f840
commit b366407038
2 changed files with 11 additions and 4 deletions

View File

@@ -28,8 +28,7 @@ ol.layer.TileProperty = {
* @api stable
*/
ol.layer.Tile = function(options) {
goog.base(this, options);
goog.base(this, /** @type {olx.layer.LayerOptions} */ (options));
};
goog.inherits(ol.layer.Tile, ol.layer.Layer);
@@ -49,6 +48,14 @@ goog.exportProperty(
ol.layer.Tile.prototype.getPreload);
/**
* @function
* @return {ol.source.Tile} Source.
* @api stable
*/
ol.layer.Tile.prototype.getSource;
/**
* @param {number} preload The level to preload tiles up to.
* @observable