var dt = drawToolbar; // NOTE: from somewhere var points = dt._points; if (points.length > 1) { var geom = dt._graphic.geometry; geom.removePoint(0, points.length - 1); points.splice(points.length - 1, 1); dt._graphic.setGeometry(geom); var start = points[points.length - 1]; var tempGeom = dt._tGraphic.geometry; tempGeom.setPoint(0, 0, start.offset(0, 0)); tempGeom.setPoint(0, 1, start.offset(0, 0)); dt._tGraphic.setGeometry(tempGeom); } else { dt._points = []; dt._onMouseMoveHandler_connect.remove(); dt._clear(); }
thank-you
very useful
Hi,
thanks for the function,
but I'd like to know what rows 10..14 are written for..
are they necessary?
bye
Gianni