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
+1
View File
@@ -45,6 +45,7 @@ ol.Attribution = function(options) {
/** /**
* @return {string} HTML. * @return {string} HTML.
* @api
*/ */
ol.Attribution.prototype.getHTML = function() { ol.Attribution.prototype.getHTML = function() {
return this.html_; return this.html_;
+2
View File
@@ -148,6 +148,7 @@ ol.layer.Group.prototype.handleLayersRemove_ = function(collectionEvent) {
* @return {ol.Collection.<ol.layer.Base>|undefined} Collection of * @return {ol.Collection.<ol.layer.Base>|undefined} Collection of
* {@link ol.layer.Layer layers} that are part of this group. * {@link ol.layer.Layer layers} that are part of this group.
* @observable * @observable
* @api
*/ */
ol.layer.Group.prototype.getLayers = function() { ol.layer.Group.prototype.getLayers = function() {
return /** @type {ol.Collection.<ol.layer.Base>|undefined} */ (this.get( 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 * @param {ol.Collection.<ol.layer.Base>|undefined} layers Collection of
* {@link ol.layer.Layer layers} that are part of this group. * {@link ol.layer.Layer layers} that are part of this group.
* @observable * @observable
* @api
*/ */
ol.layer.Group.prototype.setLayers = function(layers) { ol.layer.Group.prototype.setLayers = function(layers) {
this.set(ol.layer.GroupProperty.LAYERS, layers); this.set(ol.layer.GroupProperty.LAYERS, layers);
+3
View File
@@ -91,6 +91,7 @@ ol.source.Source.prototype.forEachFeatureAtPixel =
/** /**
* @return {Array.<ol.Attribution>} Attributions. * @return {Array.<ol.Attribution>} Attributions.
* @api
*/ */
ol.source.Source.prototype.getAttributions = function() { ol.source.Source.prototype.getAttributions = function() {
return this.attributions_; return this.attributions_;
@@ -99,6 +100,7 @@ ol.source.Source.prototype.getAttributions = function() {
/** /**
* @return {string|olx.LogoOptions|undefined} Logo. * @return {string|olx.LogoOptions|undefined} Logo.
* @api
*/ */
ol.source.Source.prototype.getLogo = function() { ol.source.Source.prototype.getLogo = function() {
return this.logo_; return this.logo_;
@@ -107,6 +109,7 @@ ol.source.Source.prototype.getLogo = function() {
/** /**
* @return {ol.proj.Projection} Projection. * @return {ol.proj.Projection} Projection.
* @api
*/ */
ol.source.Source.prototype.getProjection = function() { ol.source.Source.prototype.getProjection = function() {
return this.projection_; return this.projection_;
+1
View File
@@ -133,6 +133,7 @@ ol.tilegrid.TileGrid.prototype.forEachTileCoordParentTileRange =
/** /**
* @return {number} Max zoom. * @return {number} Max zoom.
* @api
*/ */
ol.tilegrid.TileGrid.prototype.getMaxZoom = function() { ol.tilegrid.TileGrid.prototype.getMaxZoom = function() {
return this.maxZoom; return this.maxZoom;