[Users] WFSCapabilitiesReader - default layer strategies
Alexandre Dube
adube at mapgears.com
Mon Feb 14 14:30:37 CET 2011
Hi Eric,
How about an option like this :
layerStrategyNames: ["BBOX", "Save"]
then the Reader tries to see if the according class exists and creates
it on each layer creation. If we wanted to define the strategy options,
we could have something like this :
layerStrategies : ["BBOX": {ratio: 1}, "Save": {auto: true}]
It seemed a bit obvious to me, but I guess that means you already
thought about it before and might not be a good solution. How about it ?
Thanks,
Alexandre
On 11-02-11 04:33 PM, Eric Lemoine wrote:
> On Fri, Feb 11, 2011 at 5:03 PM, Alexandre Dube<adube at mapgears.com> wrote:
>> Hi,
>>
>> In the WFSCapabilitiesReader, layers are created with the following
>> strategies :
>>
>> strategies: [new OpenLayers.Strategy.Fixed()]
>>
>> Other than modifying that line in code directly, is there a way to
>> define a new default value for the strategies ? Defining (in
>> WFSCapabilitiesStore) the following option doesn't work because the same
>> objects would be used for each layers instead of creating new ones :
>>
>> layerOptions: {
>> strategies: [
>> new OpenLayers.Strategy.BBOX(),
>> new OpenLayers.Strategy.Save()
>> ]
>>
>> Thanks,
> Hi Alexandre. You're right, this is an issue. I don't see any obvious
> way to fix that. Ideas are welcome.
>
--
Alexandre Dubé
Mapgears
www.mapgears.com
More information about the Users
mailing list