RemoveAllAnnotations

Hi !

Sometimes the RemoveAllAnnotations function doesn't work properly,
as in not all annotations are being removed from the map.

Is this a bug ?

Cheers,

Paul

Hi,



We did not experience issues with this in the demo,

Can you provide a sample?



Kind Regards,

Pieter

Hi !

Add two buttons to your Map demo :

  TMSFMXNativeUIToolBar1.Items.Add.Text := 'Remove A'; // Annotations
  TMSFMXNativeUIToolBar1.Items.Add.Text := 'Remove O'; // Overlay

Add this to the toolbar click :

    6 :
     begin
      TMSFMXNativeMKMapView1.RemoveAllAnnotations;
     end;
    7 :
     begin
      TMSFMXNativeMKMapView1.RemoveAllOverlays;
     end;

Then follow this order :

1. Add annotations
2. Add circle
3. Remove circle
4. Remove annotations (<--- Still there, no remove !)

Cheers,

Paul

Hi, 


There was indeed a bug in the RemoveOverlays functionality, the bug is now fixed and will be available in the next release.

Kind Regards, 
Pieter

Hi Pieter,

Thanks,

Any idea when the next release will be ?
I needed this for my project.

Or can i change it myself in the source ?

Cheers,

Paul

Hi, you can change it yourself in the source code easily as we are not sure when the next release will be.


the fix will is changing the Annotations.Clear to Overlays.Clear in the RemoveAllOverlays method.

If you re-execute the sequence then the annotations should be cleared also.

Kind Regards, 
Pieter

Hi Pieter,

Works now :)

Cheers,

Paul