Merge pull request #3272 from acanimal/3267

Added getter function to return the wrapped source within the cluster
This commit is contained in:
Éric Lemoine
2015-02-25 21:55:04 +01:00
2 changed files with 11 additions and 0 deletions

View File

@@ -59,6 +59,16 @@ ol.source.Cluster = function(options) {
goog.inherits(ol.source.Cluster, ol.source.Vector);
/**
* Get a reference to the wrapped source.
* @return {ol.source.Vector} Source.
* @api
*/
ol.source.Cluster.prototype.getSource = function() {
return this.source_;
};
/**
* @inheritDoc
*/

View File

@@ -178,6 +178,7 @@ ol.source.ImageVector.prototype.forEachFeatureAtCoordinate = function(
/**
* Get a reference to the wrapped source.
* @return {ol.source.Vector} Source.
* @api
*/