I want to create a line with movable length. With one end is fixed and with the other end that could be dragged by mouse(increasing or decreasing the line length by dragging one end of the line by the mouse). Is it possible?
PointCollection polylinePoints = new PointCollection(SpatialReferences.getWgs84());
polylinePoints.add(new Point(0, 0));
polylinePoints.add(new Point(10, 10));//this point should be able to be dragged by mouse along the line
Polyline polyline = new Polyline(polylinePoints);
SimpleLineSymbol polylineSymbol =
new SimpleLineSymbol(SimpleLineSymbol.Style.SOLID, 0xFF0063FF, 3);
Line = new Graphic(polyline, polylineSymbol);
graphicsOverlay.getGraphics().add(Line);