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"><<a href="mailto:adube@mapgears.com">adube@mapgears.com</a>></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>
That's what I had in mind in the beginning, but others like Eric<br>
Lemoine convinced me not doing so. 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's protocol and format options<br>
before doing anything else. This is a different behavior than the BBOX<br>
strategy. Also, this strategy could be used with other ( not yet<br>
implemented ) strategies.<br>
<br>
I agree with the fact that it's wrong to have a strategy dependent of<br>
an other. Also, it won't work if you declare it after BBOX because it<br>
won't trigger its options changing events before.<br>
<br>
What do you think ?<br>
<font color="#888888"><br>
Alexandre<br>
</font><div class="Ih2E3d"><br>
Ivan Grcic wrote:<br>
> Hi,<br>
><br>
> tnx Alex, very usefull option!!<br>
><br>
> I think something like should be inside the BBOX strategy..and not<br>
> separate strategy that is dependent on it.<br>
><br>
> Greetings,<br>
> Ivan<br>
><br>
> On Thu, Jan 15, 2009 at 4:44 PM, Alexandre Dube <<a href="mailto:adube@mapgears.com">adube@mapgears.com</a>> wrote:<br>
><br>
>> Hi devs,<br>
>><br>
>> <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>
>><br>
>> See live examples of use :<br>
>> (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>
>> (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>
>><br>
>> Comments are welcomed,<br>
>><br>
>> Regards,<br>
>><br>
>> --<br>
>> 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>
>><br>
>><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>