[OpenLayers-Users] vector layer with WFS protocol: load wheninvisible?

Bart van den Eijnden (OSGIS) bartvde at osgis.nl
Sat May 2 15:24:22 EDT 2009


Okay, I finally found some time (and energy) to track this one down, 
I've opened up:

http://trac.openlayers.org/ticket/2072#preview

for further discussion.

Best regards,
Bart

bartvde at osgis.nl wrote:
> Could this have to do something with allOverlays: true which I am using?
>
> I've changed back the sequence of layers (should be up in 5 minutes) so
> it's reproduceable in the following example (the GNIS population is the
> WFS layer), switch it off and zoom to max extent you'll see the WFS
> request for the whole world going off.
>
> http://dev.openlayers.org/sandbox/bartvde/owscontext/openlayers/examples/owscontext.html
>
> Best regards,
> Bart
>
>   
>> It only happens if the WFS layer is the first one in the layers stack, so
>> map.layers[0]. I'll try and investigate further.
>>
>> Best regards,
>> Bart
>>
>>     
>>> Hey Kris,
>>>
>>> thanks for your reply. Strangely enough I cannot reproduce it anymore,
>>> my
>>> sandbox was created off trunk 2 days ago.
>>>
>>> http://dev.openlayers.org/sandbox/bartvde/owscontext/openlayers/examples/owscontext.html
>>>
>>> Best regards,
>>> Bart
>>>
>>>       
>>>> Hi Bart,
>>>>
>>>> I have the same setup but when layer is created with visibility: false
>>>> no requests are made until visibility is changed.
>>>> Are you sure you use the last trunk version. I believe there has been
>>>> some changes to activate protocol later than originally was done.
>>>>
>>>> Cheers Kris
>>>>
>>>> -----Original Message-----
>>>> From: users-bounces at openlayers.org
>>>> [mailto:users-bounces at openlayers.org]
>>>> On Behalf Of bartvde at osgis.nl
>>>> Sent: Wednesday, April 29, 2009 2:26 PM
>>>> To: users at openlayers.org
>>>> Subject: [OpenLayers-Users] vector layer with WFS protocol: load
>>>> wheninvisible?
>>>>
>>>> Hi list,
>>>>
>>>> using trunk I see that a vector layer with a BBOX strategy and a WFS
>>>> protocol does request data even if it is not visible in the map.
>>>>
>>>> Is this intentional / by design?
>>>>
>>>> Best regards,
>>>> Bart
>>>>
>>>> _______________________________________________
>>>> Users mailing list
>>>> Users at openlayers.org
>>>> http://openlayers.org/mailman/listinfo/users
>>>>
>>>>         
>>>
>>>       
>> _______________________________________________
>> Users mailing list
>> Users at openlayers.org
>> http://openlayers.org/mailman/listinfo/users
>>
>>     
>
>
>
>
>   


-- 
Bart van den Eijnden
OSGIS, Open Source GIS
bartvde at osgis.nl
http://www.osgis.nl




More information about the Users mailing list