[OpenLayers-Users] Highlighting the selected geometry

Alexandre Dube adube at mapgears.com
Tue Sep 9 07:48:21 EDT 2008


Hi Mika,

If your 'other one' layer is vector, you might what to check this 
example : http://openlayers.org/dev/examples/select-feature.html

It might have what you seek : a select feature control. Just right-click 
and "view page source" to see the code.

Cheers,

Alexandre

Lehtonen, Mika wrote:
> Hi,
>
> is there any examples available which I could use with the following 
> task? Tried to google, but didn't find any good ones.
>
> I have two wms-layers in my map. The another one includes some polygons. 
> In order to get some info out when clicking the polygon, I built a 
> system which does that. But I would also like to get the selected 
> polygon to render with a different style, so that it'd be sort of 
> highlighted. I thought I could copy it into vector layer having 
> different style. But frankly said, I don't know how to do it. Just 
> learning OL.
>
> - mika -
> _______________________________________________
> Users mailing list
> Users at openlayers.org
> http://openlayers.org/mailman/listinfo/users
>   


-- 
Alexandre Dubé
Mapgears
www.mapgears.com




More information about the Users mailing list