TTMSFNCGoogleMapsPolyline create manually by clickin on the map

Hi,
What is the best method to manually generate polylines on Google maps?
When adding new points to a polyline using the OnMapClick method:
(...)
MyGoogleMap.BeginUpdate;
co := MyPolyLine.Coordinates.Add;
co.Coordinate.Longitude := AEventData.Coordinate.Longitude;
co.Coordinate.Latitude := AEventData.Coordinate.Latitude;
MyGoogleMap.EndUpdate;
(...)
Polyline is not refreshed on the map.

Hi,

Please note that Polylines must be marked as updated manually with the Recreate property.
Can you try to update your code as indicated below?

  MyGoogleMap.BeginUpdate;
  co := MyPolyLine.Coordinates.Add;
  co.Coordinate.Longitude := AEventData.Coordinate.Longitude;
  co.Coordinate.Latitude := AEventData.Coordinate.Latitude;

  //Force the polyline to update
  MyPolyLine.Recreate := True;

  MyGoogleMap.EndUpdate;

Thanks!
It's working.

Happy to help!