<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META http-equiv=Content-Type content=text/html;charset=iso-8859-1>
<META content="MSHTML 6.00.6002.18357" name=GENERATOR></HEAD>
<BODY id=MailContainerBody
style="PADDING-RIGHT: 10px; PADDING-LEFT: 10px; PADDING-TOP: 15px" leftMargin=0
topMargin=0 CanvasTabStop="true" name="Compose message area">
<DIV><FONT face=Arial size=2>+1 on the option to use the short strategy name
string with an options object.</FONT></DIV>
<DIV><FONT face=Arial size=2>We could implement this immediately in GeoExt when
creating layers from the capabilities store and the layerOptions, if there is
not equal support for that syntax directly in OL.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>I've also come across this issue and ended up
solving it by listening to 'add' event on the layer store and then modifying
options on the layers accordingly. I would much prefer the ability to set the
defaults in the layerOptions rather than having to modify them after
creation.</FONT></DIV>
<DIV><FONT face=Arial size=2></FONT> </DIV>
<DIV><FONT face=Arial size=2>Matt Priour</FONT></DIV>
<DIV><FONT face=Arial size=2>Kestrel Computer Consulting</FONT></DIV>
<DIV><BR></DIV>
<DIV style="FONT: 10pt Tahoma">
<DIV style="BACKGROUND: #f5f5f5">
<DIV style="font-color: black"><B>From:</B> <A title=eric.lemoine@camptocamp.com
href="mailto:eric.lemoine@camptocamp.com">Eric Lemoine</A> </DIV>
<DIV><B>Sent:</B> Tuesday, February 15, 2011 7:51 AM</DIV>
<DIV><B>To:</B> <A title=adube@mapgears.com
href="mailto:adube@mapgears.com">Alexandre Dube</A> </DIV>
<DIV><B>Cc:</B> <A title=users@geoext.org href="mailto:users@geoext.org">GeoEXT
Users</A> </DIV>
<DIV><B>Subject:</B> Re: [Users] WFSCapabilitiesReader - default layer
strategies</DIV></DIV></DIV>
<DIV><BR></DIV>> What if we started supporting this :<BR>> var layer = new
OpenLayers.Layer.Vector("layer", {<BR>> protocol: ...,<BR>>
strategies: ["OpenLayers.Strategy.BBOX"]<BR>>
});<BR>><BR>> and this too :<BR>> var layer = new
OpenLayers.Layer.Vector("layer", {<BR>> protocol: ...,<BR>>
strategies: [{"OpenLayers.Strategy.BBOX": {ratio: 1}}]<BR>>
});<BR><BR>That was my suggestion. And I think {"BBOX"} and {"BBOX": {ratio:
1}}<BR>could also be supported.<BR><BR><BR><BR>-- <BR>Eric
Lemoine<BR><BR>Camptocamp France SAS<BR>Savoie Technolac, BP 352<BR>73377 Le
Bourget du Lac, Cedex<BR><BR>Tel : 00 33 4 79 44 44 96<BR>Mail : <A
href="mailto:eric.lemoine@camptocamp.com">eric.lemoine@camptocamp.com</A><BR><A
href="http://www.camptocamp.com">http://www.camptocamp.com</A><BR>_______________________________________________<BR>Users
mailing list<BR><A href="mailto:Users@geoext.org">Users@geoext.org</A><BR><A
href="http://www.geoext.org/cgi-bin/mailman/listinfo/users">http://www.geoext.org/cgi-bin/mailman/listinfo/users</A><BR></BODY></HTML>