Hi there,
Hi,
Hi Jan !
Could u show me how it's done to fit all annotations in view ?
@ Pieter, do i need only the "RegionthatFits", or also translated code from Jan
to get this working ?
Any example is welcome.
Cheers !
Hi,
You also need to have the code, I will look into this
and provide a small sample later today
Regards,
Pieter
Hi,
Pieter Scheldeman2013-07-03 08:28:30
Wouldn't it be a wonderfull addition to include a "zoomtoannotations" method to the mapview? ;-)
Is added and will be available in the next release
While we are at it: there is a method named "removeallannotations", but this also deletes the current user location, if this property is set. When updating a map with custom annotations this is not what you want. Following code will remove all annotations save the user location:
Hi,
Hi Pieter,
Thanks for your reply.
When i use the code i get this error :
Undeclared identifier: 'Location'
coord := TMSFMXNativeMKMapView1.Annotations.Location;
Am i missing something ?
Cheers.
Paul
you need to add the Index with Annotations[ I ].Location but the forum doesn't allow me to add brackets without spacesPieter Scheldeman2013-07-03 07:49:43
I Actually tested this here and it seems that you do not need the regionthatfits function, you can test with and without it and verify what best suits your needs.
Thanks Pieter !
Cheers
Hi Pieter,
I must be doing something wrong.
When i use the code, or when i use "ZoomToFitAnnotations", the map
will zoom to a place close to London, while i'm in Holland, so are all my
Annotations.
( I've downloaded the update)
Any clue ?
Cheers
Hi Jan,
Thanks !
Works now :)
Cheers
Thanks for the fix, modified the post
And reuploaded the latest version with the fix
Hi Pieter,
Would it be possible to include the current user location when using "zoomtofit"
So that not only the annotations are in the map, but also the current location ?
If possible with an option to include or exclude the current location with "zoomtofit".
Cheers,
Paul
We will add this on our feature request list.