Updating polylines

Hi

I am rewriting my VCL WebGMaps code for FNCMaps, and am trying to update the coordinate of a polyline (move it on the map) after I have created it.

In WebGMaps I could do this for a TPolylineItem as follows:

APolylineItem.Polyline.Path.Items[0].Latitude := NewLatitude;
APolylineItem.Polyline.Path.Items[0].Longitude := NewLongitude;
GMap.UpdateMapPolyline(APolylineItem.Polyline);

But I can't find an equivalent capability in TTMSFNCMapsPolyLine, I am trying with:

AFNCPolylineItem.Coordinates.Items[0].Latitude := NewLatitude;
AFNCPolylineItem.Coordinates.Items[0].Longitude := NewLongitude;

The polyline coordinate values do change, but the line doesn't move on the map until one of the other features are also changed (like StrokeColor). There does not seem to be an equivalent function to 'UpdateGMapPolyLine' to refresh the shape's position on the map with the updated coordinates.

I can change other characteristics like StrokeColor, and change the radius for circles, and the map updates nicely. Just stuck on polyline coordinates...

Jonathan

call

GMap.BeginUpdate;
AFNCPolylineItem.Recreate := True;
AFNCPolylineItem.Coordinates.Items[0].Latitude := NewLatitude;
AFNCPolylineItem.Coordinates.Items[0].Longitude := NewLongitude;
GMap.EndUpdate;

Thank you, my polylines are all updating now in the map