<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.5726" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN class=798504317-01042009>i use this
layer:</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=798504317-01042009></SPAN></FONT> </DIV>
<DIV><FONT face=Arial color=#0000ff size=2>_clusterStrategy = new
OpenLayers.Strategy.Cluster({distance:20})<BR> _featureLayer = new
OpenLayers.Layer.Vector(" Features of
Interest",{<BR> projection:
_map.projection,<BR> styleMap:
featureStyles,<BR> strategies:
[_clusterStrategy]<BR> });</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><SPAN class=798504317-01042009><FONT face=Arial size=2>and i have a store
that pulls from the server and then adds the records to the layer above with
this function:</FONT></SPAN></DIV><SPAN class=798504317-01042009><FONT
face=Arial size=2></FONT></SPAN>
<DIV><BR><FONT face=Arial color=#0000ff size=2>function _createFeatures(records,
animate)<BR> { <BR> var features = [];<BR> var
wktFormat = new OpenLayers.Format.WKT({<BR> externalProjection:
_map.displayProjection,<BR> internalProjection:
_map.projection<BR> });<BR> Ext.each(records,
function(record){<BR> var feature =
wktFormat.read(record.get('featureGeom'));<BR> feature.id =
record.get('featureId');<BR> features.push(feature);<BR> });<BR> _featureLayer.addFeatures(features);<BR> }</FONT></DIV>
<DIV><FONT face=Arial color=#0000ff size=2></FONT> </DIV>
<DIV><SPAN class=798504317-01042009><FONT face=Arial size=2>this works great the
first time i get records, but i have an interval running that polls my
server</FONT></SPAN></DIV>
<DIV><SPAN class=798504317-01042009><FONT face=Arial size=2>for new stuff and
then i call the function above to add those to the map as
well.</FONT></SPAN></DIV>
<DIV><SPAN class=798504317-01042009><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=798504317-01042009><FONT face=Arial size=2>the issue is that it
seems to be impossible to add new features to a clustered layer after the
initial load.</FONT></SPAN></DIV>
<DIV><SPAN class=798504317-01042009><FONT face=Arial size=2>I need a way to add
features to a vector layer using a clustering strategy that doesnt make all my
previous clustered features vanish.</FONT></SPAN></DIV>
<DIV><SPAN class=798504317-01042009><FONT face=Arial
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=798504317-01042009><FONT face=Arial size=2>I would even
understand it if it didnt visibly recalulate the clusters untill i changed my
zoom lvl,</FONT></SPAN></DIV>
<DIV><SPAN class=798504317-01042009><FONT face=Arial size=2>but it definitly
shouldnt make everything disaper when i add new
features.</FONT></SPAN></DIV></BODY></HTML>