Would it be possible to modify TTMSFMXNativeUIMapView to be able to load an image from an array like TArray<TTMSFMXNativeUIImageVeiw> or TList<TTMSFMXNativeUIImageVeiw>.
I am trying to animate a image on the UIMapView and I think the .AddImage might be too slow to do this. Basically I have a timer set to one second and on timer even will
Current way:
procedure TfrmMain.onImageAnimationTimer(Sender: TObject);
var
tl, tr, bl, br, mr : TTMSFMXNativeMKMapLocation;
splat, splon : double;
begin
//Overlay IR sat image
Map.BeginUpdate;
tl := MakeMapLocation(55.0,-110);
br := MakeMapLocation(-5, -10);
Map.AddImage(ExtractFilePath(ParamStr(0))+'Documents/'+imagesequence+'.jpg', tl, br);
Map.EndUpdate;
end;
Maybe a new way:
//global variable
var
ImageList : TList<TTMSFMXNativeUIImageVeiw>
procedure TfrmMain.toolBarMainItems4Click(Sender: TObject);
var
tl, tr, bl, br, mr : TTMSFMXNativeMKMapLocation;
splat, splon : double;
begin
//Overlay IR sat image
Map.BeginUpdate;
tl := MakeMapLocation(55.0,-110);
br := MakeMapLocation(-5, -10);
Map.AddImage(ImageList.Items[imagesequence]);
Map.EndUpdate;
end;
Regards,
Bryan