Select to view content in your preferred language

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

330
0
05-02-2012 09:57 PM
GwenRoyakkers1
Deactivated User
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.
0 Kudos
0 Replies