It seems to have the same behavior whether I use removeFeature or 
destroyFeature.
The features vanish correctly until I change my zoom lvl, then they all 
reappear.
They even contienue to dynamically cluster themselves.


-----Original Message-----
From: Alexandre Dube [mailto:[email protected]] 
Sent: Wednesday, April 01, 2009 9:10 AM
To: Heidt, Christopher M.
Cc: [email protected]
Subject: Re: [OpenLayers-Users] removeFeatures + Cluster Strategy

Hi,

Try _featureLayer.destroyFeatures(_featureLayer.features) instead.

Regards,

Alexandre

Heidtmare wrote:
> first i do this:
>
> function _createFeatures(records)
>       {       
>               var features = [];
>               var wktFormat = new OpenLayers.Format.WKT({
>                       externalProjection: _map.displayProjection,
>                       internalProjection: _map.projection
>               });
>               Ext.each(records, function(record){
>                       var feature = wktFormat.read(record.get('featureGeom'));
>                       feature.id = record.get('featureId');
>                       features.push(feature);
>               });
>               _featureLayer.addFeatures(features);
>       }
> and it works great.
>
>
> later i do this:
>
> _featureLayer.removeFeatures(_featureLayer.features);
>
> and my feature clusters disappear as expected...until i change my zoom level, 
> then they all come back.
> how do i kill the clusters once and for all!
>
>
>   


--
Alexandre Dubé
Mapgears
www.mapgears.com

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

Reply via email to