TArray<TTMSFMXNativeUIImageVeiw>

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

What exactly do you want to animate? The AddImage adds an overlay every time. Do you want to add multiple images? Can you perhaps prepare a working sample so we can investigate here?


Kind Regards,
Pieter

Hello Pieter,

Yes, I want to cycle through a list of images in some type of array or TList to show an animation on the map of a sequence of images.
I will put together a simple test app later today.
Regards,
Bryan

Hello Pieter,
I have emailed a sample app.
Thank you for your help.
Very much appreciated.
Regards,
Bryan