Merge pull request #2512 from petrsloup/olcs-missing-api
Make API of raster sources more convenient
This commit is contained in:
@@ -45,6 +45,7 @@ ol.Attribution = function(options) {
|
||||
|
||||
/**
|
||||
* @return {string} HTML.
|
||||
* @api
|
||||
*/
|
||||
ol.Attribution.prototype.getHTML = function() {
|
||||
return this.html_;
|
||||
|
||||
@@ -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);
|
||||
|
||||
@@ -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_;
|
||||
|
||||
@@ -133,6 +133,7 @@ ol.tilegrid.TileGrid.prototype.forEachTileCoordParentTileRange =
|
||||
|
||||
/**
|
||||
* @return {number} Max zoom.
|
||||
* @api
|
||||
*/
|
||||
ol.tilegrid.TileGrid.prototype.getMaxZoom = function() {
|
||||
return this.maxZoom;
|
||||
|
||||
Reference in New Issue
Block a user