[OpenLayers-Dev] Control.SelectFeature.select and feature.originalStyle

Andreas Hocevar andreas.hocevar at gmail.com
Tue Jan 22 08:47:06 EST 2008


Hi,

I wonder if there is a reason (other than to make 
test_SelectFeature.html work) why we change feature.style in the select 
and unselect methods of Control.SelectFeature.  Wouldn't it be 
sufficient to call layer.drawFeature with the optional second style 
parameter?  What am I missing here?

IMO it would be more elegant if we would not have to store 
feature.originalStyle.

Regards,
Andreas.



More information about the Dev mailing list