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
This commit is contained in:
@@ -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 = [];
|
||||
|
||||
Reference in New Issue
Block a user