AnsweredAssumed Answered

GeometryException when drawing a line on the map

Question asked by mggl on Jan 19, 2012
Latest reply on Jan 19, 2012 by ibespalov
I tried to draw a line on a graphic layer added to map with the lines of code below. I get a geometry exception. What am I doing wrong?

                           Segment segment = new Line();    segment.setStart(startPoint);    segment.setEnd(endPoint);        Log.d("SEGMENT", "x: " + segment.getStartX() + "y: " + segment.getStartY());        Symbol lineSymbol = new SimpleLineSymbol(Color.BLUE, 4);    someGraphicsLayer.addGraphic(new Graphic(segment, lineSymbol));

Outcomes