Thanks a lot for your feedbacks.  This is really appreciated.

FYI, the OL-Dev thread : http://osgeo-org.1803224.n2.nabble.com/Alternative-way-to-define-properties-in-objects-td6027678.html

Regards,

Alexandre


On 11-02-15 09:27 AM, Matt Priour wrote:
+1 on the option to use the short strategy name string with an options object. 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. 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.
Matt Priour
Kestrel Computer Consulting

*From:* Eric Lemoine <mailto:[email protected]>
*Sent:* Tuesday, February 15, 2011 7:51 AM
*To:* Alexandre Dube <mailto:[email protected]>
*Cc:* GeoEXT Users <mailto:[email protected]>
*Subject:* Re: [Users] WFSCapabilitiesReader - default layer strategies

> What if we started supporting this :
> var layer = new OpenLayers.Layer.Vector("layer", {
>    protocol: ...,
>    strategies: ["OpenLayers.Strategy.BBOX"]
> });
>
> and this too :
> var layer = new OpenLayers.Layer.Vector("layer", {
>    protocol: ...,
>    strategies: [{"OpenLayers.Strategy.BBOX": {ratio: 1}}]
> });

That was my suggestion. And I think {"BBOX"} and {"BBOX": {ratio: 1}}
could also be supported.



--
Eric Lemoine

Camptocamp France SAS
Savoie Technolac, BP 352
73377 Le Bourget du Lac, Cedex

Tel : 00 33 4 79 44 44 96
Mail : [email protected] <mailto:[email protected]>
http://www.camptocamp.com
_______________________________________________
Users mailing list
[email protected] <mailto:[email protected]>
http://www.geoext.org/cgi-bin/mailman/listinfo/users


--
Alexandre Dubé
Mapgears
www.mapgears.com

_______________________________________________
Users mailing list
[email protected]
http://www.geoext.org/cgi-bin/mailman/listinfo/users

Reply via email to