thanks All, the confusion gone . please mark this discussion as closed :)<div><br></div><div>thanks OpenLayers users...<br><br><div class="gmail_quote">On Tue, Dec 13, 2011 at 8:47 PM, Fernando <span dir="ltr"><<a href="mailto:fnorte@gmail.com">fnorte@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Take it easy Mohammed,<div><br></div><div>The strategy is usually combined with Protocol and/or Format Classes, it's about 'time' and data. The Strategy class it's used to determine what to do with a data returned from a protocol, before became visible in an layer.</div>
<div><br></div><div>See an example, that I found in a good book about OpenLayers, that I recomend to buy or stfw (OpenLayers 2.10 - Begginer's Guide, by Erik Hazzard, from PACKT Publishing):</div><div><br></div><div>
<div>
<font face="'courier new', monospace"><i>var vector_layer = new OpenLayers.Layer.Vector('More Advanced Vector Layer',{</i></font></div><div><font face="'courier new', monospace"><i> protocol: new OpenLayers.Protocol.HTTP({</i></font></div>
<div><font face="'courier new', monospace"><i> url: 'some_data.json',</i></font></div><div><font face="'courier new', monospace"><i> format: new OpenLayers.Format.GeoJSON({})</i></font></div>
<div><font face="'courier new', monospace"><i> }),</i></font></div><div><font face="'courier new', monospace"><i> strategies: [new OpenLayers.Strategy.Fixed()]</i></font></div>
<div><font face="'courier new', monospace"><i>});</i></font></div><div><i><br></i></div><div><i>The above code would use the HTTP Protocol class and use the GeoJSON format. Notice how the format is actually part of the protocol object. The Fixed Strategy class is also used, which essentially just causes the vector layer to request features once and never request new features again.</i></div>
</div><div><br></div><div>Did you get it, now?</div><div><br></div><div>Cya,</div><div><br></div><div>Fernando G. Norte<br>BHte - MG<br>cel: <a href="tel:%2B55%2031%209119%208814" value="+553191198814" target="_blank">+55 31 9119 8814</a><br>
-------------------------<br>MSN e Gtalk # <a href="mailto:fnorte@gmail.com" target="_blank">fnorte@gmail.com</a><br>
<br><br><div class="gmail_quote">2011/12/13 Mohammed Rashad <span dir="ltr"><<a href="mailto:mohammedrashadkm@gmail.com" target="_blank">mohammedrashadkm@gmail.com</a>></span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div><div></div><div class="h5">
i already read the openlayers documentation.Atleast you should think that people may have looked google search pages before asking to a list<div>thanks for your help</div><div><br></div><div>but I need more . OpenLayers people who developed it may have more idea on it</div>
<div><br></div><div>I am waiting for them to answer....<div><div><br><br><div class="gmail_quote">On Tue, Dec 13, 2011 at 7:34 PM, Ian Turton <span dir="ltr"><<a href="mailto:ijturton@gmail.com" target="_blank">ijturton@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br><br><div class="gmail_quote"><div>On 13 December 2011 13:20, Mohammed Rashad <span dir="ltr"><<a href="mailto:mohammedrashadkm@gmail.com" target="_blank">mohammedrashadkm@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div>Hi All,</div>Any one please tell me what is strategy?<div>How it works?</div><div>How to use it?<span><font color="#888888"><br clear="all"></font></span></div></blockquote></div><div><br><b><a href="http://www.google.co.uk/search?q=openlayers+strategy" target="_blank">http://www.google.co.uk/search?q=openlayers+strategy</a></b><br>
<br>-- <br></div></div>Ian Turton<br><br>
</blockquote></div><br><br clear="all"><div><br></div></div></div><span><font color="#888888">-- <br><div><font face="arial, helvetica, sans-serif">Regards,</font></div><div><font face="arial, helvetica, sans-serif"><div>
<img><br>
</div></font></div><br>
</font></span></div>
<br></div></div><div class="im">_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.osgeo.org" target="_blank">Users@lists.osgeo.org</a><br>
<a href="http://lists.osgeo.org/mailman/listinfo/openlayers-users" target="_blank">http://lists.osgeo.org/mailman/listinfo/openlayers-users</a><br>
<br></div></blockquote></div><br></div>
</blockquote></div><br><br clear="all"><div><br></div>-- <br><div><font face="arial, helvetica, sans-serif">Regards,</font></div><div><font face="arial, helvetica, sans-serif"><div><img src="http://upload.wikimedia.org/wikipedia/commons/f/f9/Albert_Einstein_signature.jpg"><br>
</div></font></div><br>
</div>