Added getter function to return the wrapped source withint the cluster
This commit is contained in:
@@ -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
|
||||
*/
|
||||
|
||||
Reference in New Issue
Block a user