[OpenLayers-Users] change only one attribute in style?

ulao S_K_U_N_X at yahoo.com
Tue Jul 20 09:09:10 EDT 2010


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.



More information about the Users mailing list