syleMap is not equal to style,your code is not correct.
construt a styleMap and match the defalut attribute to you style.
and Assign it to vectory layer's styleMap attribute 



--
View this message in context: 
http://osgeo-org.1560.n6.nabble.com/Can-Not-Get-Rule-based-Stying-to-Work-on-KML-tp5021027p5021109.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://lists.osgeo.org/mailman/listinfo/openlayers-users

Reply via email to