Editable polylines

Hello.



Why I can't get new path coordinates after Edit route by mouse in runtime?


1. Create editable path:

var
    PolylineItem: TPolylineItem;
begin
    PolylineItem := Form1.Map1.Polylines.Add;
    PolylineItem.Polyline.Width := 3;          
    PolylineItem.Polyline.Editable := True;   
    PolylineItem.Polyline.Path.Add(48.9, 2.26);
    PolylineItem.Polyline.Path.Add(48.8, 2.4);
    Form1.Map1.CreateMapPolyline(PolylineItem.Polyline);



2. Edit route by mouse on the map (runtime)


3. How to get new coordinates for the path? Now I get old coordinates (48.9, 2.26 and 48.8, 2.4)
var
    PolylineItem: TPolylineItem;
    PathItem: TPathItem;
begin
    PolylineItem := Form1.Map1.Polylines[0];

    PathItem := PolylineItem.Polyline.Path[0];
    ShowMessage(FloatToStr(PathItem.Latitude)+':'+FloatToStr(PathItem.Longitude));

    PathItem := PolylineItem.Polyline.Path[1];
    ShowMessage(FloatToStr(PathItem.Latitude)+':'+FloatToStr(PathItem.Longitude));

Hi,


Please note that polyline coordinates are not automatically updated after editing.
You can call GetModifiedMapPolyline to retrieve updated values.

Thank you!