Results 1 to 2 of 2

Thread: Display entire route with annotations.

  1. #1
    Neuer skobbler
    Join Date
    30.06.2015
    Posts
    2

    Display entire route with annotations.

    I'm using the swift Demo as a guideline and for some reason the display cuts off parts of the mapView for really long distances (i.e. navigating from California to Florida). Screen Shot 2015-06-30 at 8.32.56 AM.jpg

    The MapKit/Swift equivalent is
    Code:
                var myPolyline = route.polyline
                
                let edgeInset = UIEdgeInsetsMake(10, 10, 10, 10)
                
                self.map!.setVisibleMapRect(myPolyline.boundingMapRect, edgePadding: edgeInset, animated: true)
    Is there any way to replicate this for SKMaps using Swift?

  2. #2
    Dev platform evangelist dandronic's Avatar
    Join Date
    31.03.2014
    Posts
    177
    The equivalent would be (Objective-C) (see the Car Navigation UI example in the demo project for details):

    Code:
            [[SKRoutingService sharedInstance] zoomToRouteWithInsets:UIEdgeInsetsMake(10.0, 10.0, 10.0, 10.0)];
    What code are you using to receive that screenshot?

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •