[OpenLayers-Users] Selected items visually return to "default" state upon zooming or other refreshing of the viewport

sendeman martijnsendenspam at gmail.com
Mon Jun 29 09:02:10 EDT 2009


Hi All,

Last week I posted these questions (see below). I haven't received any
replies yet. Is more information needed to be able to give a good reply? If
so, please let me know what to provide, I'll be happy to! The issues
described below are still bugging me.

Thanks a lot in advance!

Best regards,
Martijn Senden.


sendeman wrote:
> 
> Excuse me, that wasn't entirely right. It should be these steps:
> 
> -select a polygon feature in wfs;
> -unselect it;
> -move cursor over a point from wfs2
> -move cursor out of the point from wfs2
> -move cursor over the point from wfs2 again
> 
> This (not entirely predictably) visually selects the previously unselected
> polygon. It works the other way around as well. The points can be wrongly
> styled as selected as well.
> 
> I wonder if it's a bug, or if I can solve it in my script.
> 
> 
> sendeman wrote:
>> 
>> p.s. On a sidenote: something strange happens when I subsequently do
>> this:
>> -select a polygon feature in wfs;
>> -unselect it;
>> -move cursor from within unselected polygon over a point from wfs2 that
>> lies within the bounds of the polygon the cursor is in.
>> 
>> What happens is that the point I'm hovering over becomes highlighted (as
>> it should be), but the unselected polygon I'm moving gets the "select"
>> style, which is not as it should be. Is this a bug in the SelectFeature
>> control, or is it my init script?
>> 
>> Thanks again.
>> 
>> Regards,
>> Martijn.
>> 
> 
> 

-- 
View this message in context: http://n2.nabble.com/Selected-items-visually-return-to-%22default%22-state-upon-zooming-or-other-refreshing-of-the-viewport-tp3147690p3174165.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.




More information about the Users mailing list