From d9179526158cb333bf13a9b736419252cd0ad662 Mon Sep 17 00:00:00 2001 From: Joseph Miller Date: Mon, 6 Oct 2014 15:33:28 -0400 Subject: [PATCH] Cluster source calls loadFeatures on vector source Closes #2801 --- src/ol/source/clustersource.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/ol/source/clustersource.js b/src/ol/source/clustersource.js index a9a83b9847..cb5225c4ea 100644 --- a/src/ol/source/clustersource.js +++ b/src/ol/source/clustersource.js @@ -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_); }