Merge pull request #6706 from fredj/cluster_getDistance

Add ol.source.Cluster#getDistance function
This commit is contained in:
Frédéric Junod
2017-04-13 15:09:36 +02:00
committed by GitHub
2 changed files with 13 additions and 3 deletions

View File

@@ -74,6 +74,16 @@ ol.source.Cluster = function(options) {
ol.inherits(ol.source.Cluster, ol.source.Vector);
/**
* Get the distance in pixels between clusters.
* @return {number} Distance.
* @api
*/
ol.source.Cluster.prototype.getDistance = function() {
return this.distance_;
};
/**
* Get a reference to the wrapped source.
* @return {ol.source.Vector} Source.