}
if (shapeType == SHAPE_TYPE_POLYLINE) {
poly = new EsriPolyline(points, OMGraphic.RADIANS, OMGraphic.LINETYPE_GREATCIRCLE);
} else if (shapeType == SHAPE_TYPE_POLYGON) {
poly = new EsriPolygon(points, OMGraphic.RADIANS, OMGraphic.LINETYPE_GREATCIRCLE);
}
if (drawingAttributes != null) {
drawingAttributes.setTo(poly);
} else {