Would it work to have OptionByZoom be a subclass of the BBOX strategy?<br><br><div class="gmail_quote">On Fri, Jan 16, 2009 at 1:58 PM, Alexandre Dube <span dir="ltr">&lt;<a href="mailto:adube@mapgears.com">adube@mapgears.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">Hi Ivan,<br>
<br>
 &nbsp;That&#39;s what I had in mind in the beginning, but others like Eric<br>
Lemoine convinced me not doing so. &nbsp;The purpose of the BBOX strategy is<br>
to toggle the protocol.read when necessary and the purpose of<br>
OptionsByZoom is only to change the layer&#39;s protocol and format options<br>
before doing anything else. &nbsp;This is a different behavior than the BBOX<br>
strategy. &nbsp;Also, this strategy could be used with other ( not yet<br>
implemented ) strategies.<br>
<br>
 &nbsp;I agree with the fact that it&#39;s wrong to have a strategy dependent of<br>
an other. &nbsp;Also, it won&#39;t work if you declare it after BBOX because it<br>
won&#39;t trigger its options changing events before.<br>
<br>
 &nbsp;What do you think ?<br>
<font color="#888888"><br>
Alexandre<br>
</font><div class="Ih2E3d"><br>
Ivan Grcic wrote:<br>
&gt; Hi,<br>
&gt;<br>
&gt; tnx Alex, very usefull option!!<br>
&gt;<br>
&gt; I think something like should be inside the BBOX strategy..and not<br>
&gt; separate strategy that is dependent on it.<br>
&gt;<br>
&gt; Greetings,<br>
&gt; Ivan<br>
&gt;<br>
&gt; On Thu, Jan 15, 2009 at 4:44 PM, Alexandre Dube &lt;<a href="mailto:adube@mapgears.com">adube@mapgears.com</a>&gt; wrote:<br>
&gt;<br>
&gt;&gt; Hi devs,<br>
&gt;&gt;<br>
&gt;&gt; &nbsp;<a href="http://trac.openlayers.org/ticket/1905" target="_blank">http://trac.openlayers.org/ticket/1905</a> is an unassigned ticket implementing a new feature : Strategy.OptionsByZoom<br>
&gt;&gt;<br>
&gt;&gt; &nbsp;See live examples of use :<br>
&gt;&gt; &nbsp; &nbsp;(working) <a href="http://dev4.mapgears.com/bdga/options-by-zoom-bdga.html" target="_blank">http://dev4.mapgears.com/bdga/options-by-zoom-bdga.html</a><br>
&gt;&gt; &nbsp; &nbsp;(missing different data sources) <a href="http://dev.openlayers.org/sandbox/adube/openlayers/examples/options-by-zoom.html" target="_blank">http://dev.openlayers.org/sandbox/adube/openlayers/examples/options-by-zoom.html</a><br>

&gt;&gt;<br>
&gt;&gt; &nbsp;Comments are welcomed,<br>
&gt;&gt;<br>
&gt;&gt; Regards,<br>
&gt;&gt;<br>
&gt;&gt; --<br>
&gt;&gt; Alexandre Dubé<br>
&gt;&gt; Mapgears<br>
&gt;&gt; <a href="http://www.mapgears.com" target="_blank">www.mapgears.com</a><br>
&gt;&gt;<br>
&gt;&gt; _______________________________________________<br>
&gt;&gt; Dev mailing list<br>
&gt;&gt; <a href="mailto:Dev@openlayers.org">Dev@openlayers.org</a><br>
&gt;&gt; <a href="http://openlayers.org/mailman/listinfo/dev" target="_blank">http://openlayers.org/mailman/listinfo/dev</a><br>
&gt;&gt;<br>
&gt;&gt;<br>
<br>
<br>
</div>--<br>
<div><div></div><div class="Wj3C7c">Alexandre Dubé<br>
Mapgears<br>
<a href="http://www.mapgears.com" target="_blank">www.mapgears.com</a><br>
<br>
_______________________________________________<br>
Dev mailing list<br>
<a href="mailto:Dev@openlayers.org">Dev@openlayers.org</a><br>
<a href="http://openlayers.org/mailman/listinfo/dev" target="_blank">http://openlayers.org/mailman/listinfo/dev</a><br>
</div></div></blockquote></div><br><br clear="all"><br>-- <br>Sebastian Benthall<br>OpenGeo - <a href="http://opengeo.org">http://opengeo.org</a><br>