Menu

Map.CenterOnUser

Graham
2013-08-08
2013-08-09
  • Graham

    Graham - 2013-08-08

    Been playing with these components for a few days now, really great work!

    I've added a very simple method to the MapView to center on the user location for anyone who needs it...

    procedure TDPFMapView.CenterMapOnUser;
    var
    ALocation: CLLocationCoordinate2D;
    begin
    ALocation := FMKMapView.userLocation.location.coordinate;
    FMKMapView.setCenterCoordinate(ALocation, True);
    end;

     
  • Babak Yaghoobi

    Babak Yaghoobi - 2013-08-09

    Hi Graham

    Thank you for this tip

    regards

     

Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.