[OpenLayers-Dev] Query featureserver?

Alexandre Dube adube at mapgears.com
Fri Oct 2 08:32:58 EDT 2009


Hi,

Kushy wrote:
> What if I need to put on this layer just some of them? Can I filter them in
> some way? I tried writing "featureserver.cgi/punti?id=100", thinking it
> would have displayed the POI with id=100, but it doesn't work.
>   

For single selection, try : featureserver.cgi/punti/100.gml

But you might want to check :

[1] a smart way to only fetch features from current map (viewport) extent
[2] a way to add filters in OpenLayers

[1] http://openlayers.org/dev/examples/strategy-bbox.html
[2] http://openlayers.org/dev/examples/filter.html

Regards,

Alexandre

-- 
Alexandre Dubé
Mapgears
www.mapgears.com




More information about the Dev mailing list