[OpenLayers-Users] Zooming to WFS layer

bartvde at osgis.nl bartvde at osgis.nl
Mon Aug 11 07:18:08 EDT 2008


Ofcourse that's possible, just use an OpenLayers AJAX request to do it and
parse the response using OpenLayers.Format.GML.

Best regards,
Bart

> Hello,
>
> isn't it possible to make the url myself and use it to make a WFS request
> that I can use to retrieve certain features to which I can zoom?
>
> Greetings,
>
> Bas
>
> On Wed, Aug 6, 2008 at 7:03 PM, Eric Lemoine <eric.c2c at gmail.com> wrote:
>
>> Hi. Basically the WFS layer reads features from the server using a box
>> GET param as the map is moved. If won't trigger any request if it's
>> not added to the map, and it basically won't help you with what you're
>> trying to achieve. The work on vector-behavior that is currently being
>> merged into trunk should meet your needs. You can take a look at the
>> vector-behavior sandbox if you you can't wait, but be warned this is
>> on-going work. Eric
>>
>> 2008/8/6, Bas Couwenberg <bascouwenberg at gmail.com>:
>>  > Hello,
>> >
>> > I have a search function (for addresses) in my OL client which takes
>> some
>> > search criteria and builds up a filter to use with:
>> OpenLayers.Layer.WFS.
>> > After
>> > OL loads all my layers with WFS I want to use this search function(
>> which
>> > loads a WFS layer thats not in my map) but I do not see the GET
>> request
>> > getting fired. Is it possible to do this while a layer is not added to
>> a
>> > map? I expect to se the GET request and retrieve the features which I
>> can
>> > use to zoom to an address.
>> >
>> > Greetings,
>> >
>> > Bas
>> >
>>
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>





More information about the Users mailing list