Need help here.. I use the simpleRender with simpleFillSymbol to change the outine color,
but the problem is that it also override the featurelayer's fill color too..
Is there a way just to change the outline color only?
Thanks.
Linh,
What does your code look like right now to change the outline? Are you getting the renderers symbol using "getsymbol" method and then using the "setOutline" method?
I have SimpleFillSymbol
var simpleFillSymbol = new SimpleFillSymbol(SimpleFillSymbol.STYLE_NULL,
new SimpleLineSymbol(SimpleLineSymbol.STYLE_DASHDOT,
new Color([255, 0, 0]), 1);
then a render
var simpleRender = new SimpleRender(simpleFillSymbol);
then I set the featureLayer
featureLayer.setRenderer(simpleRender);
this feature already including polygons and fill colors based on their characteristics., ie... yellow red, blue, etc..
all I want is to change the outline color..
THanks.
I got it.. by get their symbols and reset their outline.
Linh,
Glad you got what I was saying. Be sure to mark this thread as answered by clicking on the correct answer link for the post that answered your question.