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

2010-07-20 Thread ulao
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(

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

2010-07-20 Thread ulao
thx! -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/change-only-one-attribute-in-style-tp5312670p5317500.html Sent from the OpenLayers Users mailing list archive at Nabble.com. ___ Users mailing list Users@openlayers.org

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

2010-07-19 Thread ulao
ok This does not make sense to me, and I hope its just me and not by design... I do somthing like this polygonFeature.style = { pointRadius: ${type}, // sized according to type attribute fillColor: #ff,

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

2010-07-19 Thread Piero Campa
I guess that whether you create your own styleMap, the values that you don't explicitly set are then set to their default. I think it's a standard way of working, but maybe I didn't get 100% your intentions... Piero -- View this message in context:

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

2010-07-19 Thread ulao
thank you for the answers. Arnd, that is what I needed ! -- View this message in context: http://osgeo-org.1803224.n2.nabble.com/change-only-one-attribute-in-style-tp5312670p5313047.html Sent from the OpenLayers Users mailing list archive at Nabble.com.