Hi,

I use the cluster strategy to show trees along streets. When the trees
are clustered, the user can click the cluster so that the map recenters
on the geometries contained in the cluster. It works fine except that
the cluster stays on the map 

The onClick code is the following : 

    function onFeatureClick(feature){
        // on feature click : go to tree page if it is a tree 
        // or recenter on cluster content if it is a cluster
         if (feature.attributes.count == 1) {            
           eval(getTreeLink(feature.attributes.id)); 
        } else {
            var e = feature.geometry.getBounds();
            for (var j = 0; j< feature.cluster.length; j++) {
                e.extend(feature.cluster[j].geometry.getBounds());
            }
            map.zoomToExtent(e);
        }
    }            

Anybody knows what I can do to make it dissapear ? If I zoom manually on
the cluster, it dissapear correctly.

Thanks

Didrik

Attachment: signature.asc
Description: This is a digitally signed message part

_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users

Reply via email to