Merge pull request #2512 from petrsloup/olcs-missing-api

Make API of raster sources more convenient
This commit is contained in:
Éric Lemoine
2014-08-18 14:23:49 +02:00
4 changed files with 7 additions and 0 deletions

View File

@@ -45,6 +45,7 @@ ol.Attribution = function(options) {
/**
* @return {string} HTML.
* @api
*/
ol.Attribution.prototype.getHTML = function() {
return this.html_;

View File

@@ -148,6 +148,7 @@ ol.layer.Group.prototype.handleLayersRemove_ = function(collectionEvent) {
* @return {ol.Collection.<ol.layer.Base>|undefined} Collection of
* {@link ol.layer.Layer layers} that are part of this group.
* @observable
* @api
*/
ol.layer.Group.prototype.getLayers = function() {
return /** @type {ol.Collection.<ol.layer.Base>|undefined} */ (this.get(
@@ -163,6 +164,7 @@ goog.exportProperty(
* @param {ol.Collection.<ol.layer.Base>|undefined} layers Collection of
* {@link ol.layer.Layer layers} that are part of this group.
* @observable
* @api
*/
ol.layer.Group.prototype.setLayers = function(layers) {
this.set(ol.layer.GroupProperty.LAYERS, layers);

View File

@@ -91,6 +91,7 @@ ol.source.Source.prototype.forEachFeatureAtPixel =
/**
* @return {Array.<ol.Attribution>} Attributions.
* @api
*/
ol.source.Source.prototype.getAttributions = function() {
return this.attributions_;
@@ -99,6 +100,7 @@ ol.source.Source.prototype.getAttributions = function() {
/**
* @return {string|olx.LogoOptions|undefined} Logo.
* @api
*/
ol.source.Source.prototype.getLogo = function() {
return this.logo_;
@@ -107,6 +109,7 @@ ol.source.Source.prototype.getLogo = function() {
/**
* @return {ol.proj.Projection} Projection.
* @api
*/
ol.source.Source.prototype.getProjection = function() {
return this.projection_;

View File

@@ -133,6 +133,7 @@ ol.tilegrid.TileGrid.prototype.forEachTileCoordParentTileRange =
/**
* @return {number} Max zoom.
* @api
*/
ol.tilegrid.TileGrid.prototype.getMaxZoom = function() {
return this.maxZoom;