Displaying sets of points on GraphicsLayer

Discussion created by jtowler on Nov 9, 2012
I want a user to select a series of points to define a route. I collect screen taps into a Polyline and add/update the graphic without difficulty using a SimpleLineSymbol. However, I would like to be able to show just the points (vertices) as well, and the documentation for SimpleMarkerSymbol suggests this is possible. However, writing (where mRoutesLayer is a GraphicsLayer and mRoute is a Polyline)

mRoutesLayer.addGraphic(new Graphic(mRoute, new SimpleLineSymbol(Color.RED, 5)));

gives me the red 5dp line I expect, while

mRoutesLayer.addGraphic(new Graphic(mRoute, new SimpleMarkerSymbol(Color.RED, 5, SimpleMarkerSymbol.STYLE.CIRCLE)));

gives me nothing at all.

I tried collecting the same points into a MultiPoint instead, but neither type of symbol results in a visible overlay in that case.

What Geometry/Symbol combination is appropriate for displaying a series of points?