[OpenLayers-Users] Highlight elements

Bart van den Eijnden (OSGIS) bartvde at osgis.nl
Mon Jan 29 10:30:02 EST 2007


Which WMS are you using?

Can you post the URL from the webserver's/application server's access log
which includes the sld_body parameter?

Best regards,
Bart

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


--------- Oorspronkelijk bericht --------
Van: Aitor Calero Garcia <aitor.calero at usm.es>
Naar: Christopher Schmidt <crschmidt at metacarta.com>
Cc: users at openlayers.org
Onderwerp: Re: [OpenLayers-Users] Highlight elements
Datum: 29/01/07 13:20

> &gt; If you can provide an example WMS Image URL before and after, I can
> &gt; provide more specific information, but something like:
> &gt; 
> &gt; layer.mergeNewParams({'queryfeature':'id', 'id':17})
> &gt; 
> &gt; Should cause the layer to redraw itself with the tiles having
> &gt; &amp;queryfeature=id&amp;id=17 tacked on. See
> &gt; 
> &gt; http://openlayers.org/dev/examples/wmst.html
> &gt; 
> &gt; For example usage.
> &gt; 
> &gt; If it's more complex than that, things might get more hairy, but it
> &gt; seems like it's probably possible to do what you want.
> 
> I have tried to use both Bart and Christopher examples, but neither
> work. Trying to use Bart`s suggestion (SLD_BODY with mergeNewParams) do
> not draw any highlighted element, and I am sure that my SLD is working,
> because if I used it as a Layer Style, it renders ok.
> 
> The other suggestion (queryfeature) I don't understand very well how I
> can use it. What does it mean 'queryfeature'? Is it a parameter or the
> name of a field in my layer?
> 
> 
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
> 
> 






More information about the Users mailing list