Gwen_roy

symbol.setOutline Not working in v1.1, any workarounds?

Discussion created by Gwen_roy on May 2, 2012
I have a problem with the new api release (v1.1)

Setting the outline of a SimpleMarkerSymbol has no effect.

In the previous api release there was a default outline.

Now when i try to set one (example is graphicsLayer):

SimpleMarkerSymbol symbol = new SimpleMarkerSymbol(Color.CYAN, 100, STYLE.CROSS);
symbol.setOutline(new SimpleLineSymbol(Color.BLACK, 4f, com.esri.core.symbol.SimpleLineSymbol.STYLE.SOLID));
myLayer.addGraphic(new Graphic(myPoint, symbol));

There is no outline.
You almost can't even see the cross because it is only 1px wide.

this also doesn't work for the STYLE.CIRCLE, and the other styles I tried.

Because of this, you can barely the marker in my office, let alone in bright daylight.

Is there a solution/workaround for this problem?
Or a way to set the outline for the whole layer?

Thanks.

Outcomes