[OpenLayers-Users] search geojson-example for show elements by name

Paul Meems (Top-X) p.meems at topx-group.nl
Fri Apr 20 07:05:00 EDT 2012


Hi Jan,

I'm using a filter for this:

  filter: new OpenLayers.Filter.Comparison({           type:
OpenLayers.Filter.Comparison.EQUAL_TO,          property: "_adresid",
        value: "-1"})

and some javascript

function changeFilter(newValue){   wfsLayer.destroyFeatures();
document.getElementById('progress').innerHTML = "..";  wfsLayer.filter
= new OpenLayers.Filter.Comparison({                           type:
OpenLayers.Filter.Comparison.EQUAL_TO,
property: "_adresid",                          value: newValue});
wfsLayer.refresh({force: true});}


Regards

Paul Meems
Organizing the International Open Source GIS conference in The Netherlands:
http://www.mapwindow.org/conference/2012/

Op 20 april 2012 11:33 schreef Jan Tappenbeck <osm at tappenbeck.net> het
volgende:

> hi !
>
> i want to make a map with a function to show streets via a search dialog.
>
> when a user select a way-name it should be show via a openlayer-vector.
>
> i only found examples to define elements by the geojson-format and show
> all elements in a bundle - but i only want to show the element with the
> id=xxxx.
>
> did anyone now an expample for this situation ?
>
> regards Jan :-)
> ______________________________**_________________
> Users mailing list
> Users at lists.osgeo.org
> http://lists.osgeo.org/**mailman/listinfo/openlayers-**users<http://lists.osgeo.org/mailman/listinfo/openlayers-users>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20120420/297ae94f/attachment.html


More information about the Users mailing list