[OpenLayers-Users] Bug? with SelectFeature, Stylemap and strokeWidth=0.0 on IE 8

Michael Sephton msephton81 at hotmail.com
Sat Aug 14 00:17:14 EDT 2010


I think I have found a bug in OpenLayers.
It happens when you have a gml_layer, a selectFeature control applied to it, and a styleMap with different styles for default and select.  Internet explorer does not behave in the expected way if the default select is specified with a strokeWidth of zero AND the select style has a strokeWidth=2.0 (or >0.0 probably).
The problem is demonstrated in the following example (which works fine in Firefox but not in IE8):
http://members.optusnet.com.au/~msephton/ol/gml-layer_h2.html

A work around for this problem is to set the strokeWidth and  strokeOpacity for the default style as 1.0 and 0.0 respectively, and the strokeOpacity for the select style as 1.0 (or >0.0 probably).
The work around is demonstrated in this example:
http://members.optusnet.com.au/~msephton/ol/gml-layer_h2b.html

Should I file a ticket for this? 

 		 	   		  
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.osgeo.org/pipermail/openlayers-users/attachments/20100814/52eb4877/attachment.html


More information about the Users mailing list