Cluster source calls loadFeatures on vector source

Closes #2801
This commit is contained in:
Joseph Miller
2014-10-06 15:33:28 -04:00
committed by Éric Lemoine
parent a6c3607897
commit d917952615

View File

@@ -60,13 +60,14 @@ goog.inherits(ol.source.Cluster, ol.source.Vector);
/**
* @param {ol.Extent} extent
* @param {number} resolution
* @inheritDoc
*/
ol.source.Cluster.prototype.loadFeatures = function(extent, resolution) {
ol.source.Cluster.prototype.loadFeatures = function(extent, resolution,
projection) {
if (resolution !== this.resolution_) {
this.clear();
this.resolution_ = resolution;
this.source_.loadFeatures(extent, resolution, projection);
this.cluster_();
this.addFeatures(this.features_);
}