[OpenLayers-Dev] feature event / highlight a feature

Christopher Schmidt crschmidt at metacarta.com
Fri Mar 30 08:45:36 EDT 2007


On Fri, Mar 30, 2007 at 02:12:21PM +0200, Christine Spietz wrote:
> Hi,
> 
> I'm working with the actual trunk 
> (http://svn.openlayers.org/trunk/openlayers/lib) and try to register an
> event on the features which are contained in a WFS-Layer.
> 
> I want the feature to be highlighted/selected if a click-event happens on 
> the feature. If the click-event happens on another feature, this feature 
> should be highlighted and the previous feature should not be highlighted 
> anymore.
> So the whole time only ONE feature is highlighted, if a click-event appears 
> on this feature.
> 
> Are there posibilities to do this with the actual trunk-code of OpenLayers?

See http://openlayers.org/dev/examples/select-feature.html 

Regards,
-- 
Christopher Schmidt
MetaCarta



More information about the Dev mailing list