Merge pull request #6706 from fredj/cluster_getDistance
Add ol.source.Cluster#getDistance function
This commit is contained in:
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user