Mapview, zoom to fit all annotations on screen

Hi Paul,


since you are looping over the list of annotations, wouldn't this already be the case? (since the user location is also an annotation?). I didn't test this though.

If the previous is correct, then the only thing would be to implement the "exclude"

Best regards,

Jan

Hi Jan,

The current location is apparently not an annotation, caus when i use the "zoomtofit"
while the current location is active, it only fits the other annotations on the map, the
current location isn't shown then after the fit.

Cheers.

Paul

"the current location isn't shown then after the fit."

Meaning it's on the map, but in an other location then the fit, so not visible.

The user location is indeed not a custom annotation

We will add an parameter to include this in the calculation

Hi Pieter,

That would be great, i really need that for my project.

Do you have any idea when this will be fixed ?

By the way, i just saw that in the Tips & FAQ of the ICL the "zoomtofit" still has that bug :

  rgnm.center.latitude := (minCoord.Longitude + maxCoord.Longitude) / 2; 
  rgnm.center.latitude := (minCoord.Latitude + maxCoord.Latitude) / 2;

Cheers !

Paul