<!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.6000.16939" name=GENERATOR></HEAD>
<BODY>
<DIV><FONT face=Arial size=2><SPAN
class=715064900-25022010>Hi,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=715064900-25022010></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=715064900-25022010>I have a vector
layer with some feature data. <FONT face=Arial size=2><SPAN
class=715064900-25022010>The layer is not visible at first
(vectorLayer.setVisibility(false)), but made visible when user starts selecting
an option. But I only want certain vector points drawn based on their feature
attributes (i.e.
vectorLayer.features.attributes.<data>).</SPAN></FONT></SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=715064900-25022010></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=715064900-25022010>When a user option
is selected, I loop through all features (i.e. vectorLayer.features.length). Set
renderIntent to no display ( OpenLayers.Style({display: "none"}) ) for the
vector point if its feature attribute (
vectorLayer.features.attributes.<data> ) does not match user
input.</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=715064900-25022010></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=715064900-25022010>This only works
when all the feature data are loaded onto the browser. That is all features are
drawn because I can't enter the loop the first time
(length=0)</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=715064900-25022010></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN class=715064900-25022010>Does anyone know how
to </SPAN></FONT><FONT face=Arial size=2><SPAN class=715064900-25022010>preload
those features before the layer is made visible the first
time?</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=715064900-25022010></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=715064900-25022010>Thanks,</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=715064900-25022010>John</SPAN></FONT></DIV>
<DIV><FONT face=Arial size=2><SPAN
class=715064900-25022010></SPAN></FONT> </DIV>
<DIV><FONT face=Arial size=2><SPAN
class=715064900-25022010></SPAN></FONT> </DIV></BODY></HTML>