From c4609c6dea5e5c7fc7b1bf39cd346dae5c7daaa1 Mon Sep 17 00:00:00 2001 From: Tim Schaub Date: Mon, 10 Nov 2008 22:25:33 +0000 Subject: [PATCH] The cluster strategy should check the map resolution instead of trying to get resolution from the layer. There are many cases where the values differ. r=crschmidt (closes #1820) git-svn-id: http://svn.openlayers.org/trunk/openlayers@8317 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf --- lib/OpenLayers/Strategy/Cluster.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/OpenLayers/Strategy/Cluster.js b/lib/OpenLayers/Strategy/Cluster.js index 3063d117d7..9fac5c698f 100644 --- a/lib/OpenLayers/Strategy/Cluster.js +++ b/lib/OpenLayers/Strategy/Cluster.js @@ -140,7 +140,7 @@ OpenLayers.Strategy.Cluster = OpenLayers.Class(OpenLayers.Strategy, { */ cluster: function() { if(this.features) { - var resolution = this.layer.getResolution(); + var resolution = this.layer.map.getResolution(); if(resolution != this.resolution || !this.clustersExist()) { this.resolution = resolution; var clusters = [];