Ok almost there?
this.style = new OpenLayers.Util.applyDefaults(
{fillColor:"#"+color},
{fillOpacity:a},
this.style);
then later
this.style = new OpenLayers.Util.applyDefaults(
{strokeOpacity:a},
this.style);
This works but using this
this.style = new OpenLayers.Util.applyDefaults(
{strokeColor:"#"+color},
{strokeOpacity:a},
this.style);
turns it all black. The strokeColor seems not to work.
--
View this message in context:
http://osgeo-org.1803224.n2.nabble.com/change-only-one-attribute-in-style-tp5312670p5316530.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.
_______________________________________________
Users mailing list
[email protected]
http://openlayers.org/mailman/listinfo/users