Dear friends,
I have difficulties with the CaptureScreenShot method using TMSFNCGoogleMap in Firemonkey. I am working with a TTabControl, basically in a tab I have a TMSFNCGoogleMap and in a different tab I have a Timage where I want to take the image capture of the map.
The issue is that when I try to capture the image of a TMSFNCGoogleMaps in a TImage, I can't synchronize that the previous actions on the map are reflected in my capture. For example, before switching tabs, I do the following, but still the markers appear in the capture. When I go back to the map, they have disappeared.
for x:= 0 to TMSFNCMaps1.Markers.Count-1 do
TMSFNCMaps1.Markers[x].Visible := false;
TMSFNCMaps1.CaptureScreenShot;
Even if I do something like this TMSFNCMaps1.Options.ShowZoomControl := false
, I get the image capture fails and the Timage control is not updated.
I don't know if there is a better way to capture the map image effectively, knowing that the previous tasks have been run on the map.