Added getter function to return the wrapped source withint the cluster

This commit is contained in:
acanimal
2015-02-23 22:07:35 +01:00
parent 3fbc6fa361
commit eb8a1845a5

View File

@@ -59,6 +59,15 @@ ol.source.Cluster = function(options) {
goog.inherits(ol.source.Cluster, ol.source.Vector);
/**
* @return {ol.source.Vector} Source.
* @api
*/
ol.source.Cluster.prototype.getSource = function() {
return this.source_;
};
/**
* @inheritDoc
*/