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

ulao S_K_U_N_X at yahoo.com
Mon Jul 19 12:00:13 EDT 2010


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: "#0000ff",
                    strokeColor: "#ff9933",
                    strokeWidth: 2,
                    graphicZIndex: 1
            };

and I can sent my color . but Doing this.

			polygonFeature.style = {
                    pointRadius: "${type}", // sized according to type
attribute
                    fillColor: "#0000ff",
//strokeColor: "#ff9933",
                    strokeWidth: 2,
                    graphicZIndex: 1
            };

will set the stroke to black. So its like I have to set all attributes each
time. Is there a way to just set one attribute, am I miss-using this?




-- 
View this message in context: http://osgeo-org.1803224.n2.nabble.com/change-only-one-attribute-in-style-tp5312670p5312670.html
Sent from the OpenLayers Users mailing list archive at Nabble.com.



More information about the Users mailing list