Take it easy Mohammed,<div><br></div><div>The strategy is usually combined with Protocol and/or Format Classes, it&#39;s about &#39;time&#39; and data. The Strategy class it&#39;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&#39;s Guide, by Erik Hazzard, from PACKT Publishing):</div><div><br></div><div>
<div>
<font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><i>var vector_layer = new OpenLayers.Layer.Vector(&#39;More Advanced Vector Layer&#39;,{</i></font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><i>    protocol: new OpenLayers.Protocol.HTTP({</i></font></div>

<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><i>        url: &#39;some_data.json&#39;,</i></font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><i>        format: new OpenLayers.Format.GeoJSON({})</i></font></div>

<div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><i>    }),</i></font></div><div><font class="Apple-style-span" face="&#39;courier new&#39;, monospace"><i>    strategies: [new OpenLayers.Strategy.Fixed()]</i></font></div>

<div><font class="Apple-style-span" face="&#39;courier new&#39;, 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: +55 31 9119 8814<br>-------------------------<br>MSN e Gtalk # <a href="mailto:fnorte@gmail.com">fnorte@gmail.com</a><br>


<br><br><div class="gmail_quote">2011/12/13 Mohammed Rashad <span dir="ltr">&lt;<a href="mailto:mohammedrashadkm@gmail.com">mohammedrashadkm@gmail.com</a>&gt;</span><br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">

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 class="h5"><br><br><div class="gmail_quote">On Tue, Dec 13, 2011 at 7:34 PM, Ian Turton <span dir="ltr">&lt;<a href="mailto:ijturton@gmail.com" target="_blank">ijturton@gmail.com</a>&gt;</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">&lt;<a href="mailto:mohammedrashadkm@gmail.com" target="_blank">mohammedrashadkm@gmail.com</a>&gt;</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 class="HOEnZb"><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>_______________________________________________<br>
Users mailing list<br>
<a href="mailto:Users@lists.osgeo.org">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></blockquote></div><br></div>