+ onZoomClusterEnd: function(arg) {
+ var map = arg.object;
+ var point = new OpenLayers.Geometry.Point(this.lonlat.lon, this.lonlat.lat);
+ var center = map.getCenter();
+ for (var i = this.layer.features.length; i-->0;) {
+ var feature = this.layer.features[i];
+ if (feature.geometry.equals(point) &&
+ (feature.attributes.count == this.count)) {
+ var self = this;
+ window.setTimeout(function() { map.setCenter(self.lonlat, map.zoom + 1)}, 500);
+ return;
+ }
+ }
+ SYP.selectControl.activate();
+ map.events.unregister("zoomend", this, SYP.onZoomClusterEnd);
+ },
+