[OpenLayers-Users] Clearing a selection feature

Dave Potts dave.potts at pinan.co.uk
Thu Aug 18 14:23:04 EDT 2011


After a feature has been selected on a Vector layer is there any way of
clearing its selected status?  Currently you can select a feature, but if
you activate another control it does not clear the selected feature.

Looking at the source of OpenLayers/Layer/Vector,at line 886 in the 2.10
version there is a commented out routine (clearSelection) which appears to
do this.  Is there any reason why its commented out?

Dave



More information about the Users mailing list