From 89b62cd53b908bb64a66d174affba9899e58daf9 Mon Sep 17 00:00:00 2001 From: cmiles74 Date: Wed, 22 Jul 2015 09:18:41 -0400 Subject: [PATCH] Resolved issue with cluster source reloading The cluster source was not reloading when a map was panned, only when the resolution changed. --- src/ol/source/clustersource.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/ol/source/clustersource.js b/src/ol/source/clustersource.js index a7c1c2c9e7..b0aaf7f15e 100644 --- a/src/ol/source/clustersource.js +++ b/src/ol/source/clustersource.js @@ -77,10 +77,10 @@ ol.source.Cluster.prototype.getSource = function() { */ ol.source.Cluster.prototype.loadFeatures = function(extent, resolution, projection) { + this.source_.loadFeatures(extent, resolution, projection); if (resolution !== this.resolution_) { this.clear(); this.resolution_ = resolution; - this.source_.loadFeatures(extent, resolution, projection); this.cluster_(); this.addFeatures(this.features_); }