[OpenLayers-Dev] Re: Select Feature - programatically select - doesn't check if feature is already selected

Janis Elmeris janis.elmeris at intelligentsystems.lv
Mon Aug 1 05:32:42 EDT 2011


On Thu, Aug 6, 2009 at 2:30 PM, Alexandre Dube<adube at mapgears.com>
wrote:
> Hi Ivan,
>
> Do you have an example showing when this can happen ? I've been playing
> with
> the SelectFeature control and can't figure how you can have the same
> feature
> added 2 times to the layer.selectedFeatures array, unless you do it
> manually.
>
> Regards,
>
> Alexandre

I have the same case as Ivan. I accidentally selected the same feature more
than once, and it crashed Firefox every time.

At least, add a function to OpenLayers.Control.SelectFeature that we can use
to check if a feature is selected or not.
Yep, im calling select manually (programatically)


--
View this message in context: http://osgeo-org.1803224.n2.nabble.com/Select-Feature-programatically-select-doesn-t-check-if-feature-is-already-selected-tp3397278p6640341.html
Sent from the OpenLayers Dev mailing list archive at Nabble.com.


More information about the Dev mailing list