AWFMapCoordinateBounds

Objective-C

@interface AWFMapCoordinateBounds

Swift

class AWFMapCoordinateBounds

An AWFMapCoordinateBounds object describes a map coordinate region defined by a bounding rectangle.

  • The area currently covered by the bounding box.

    Declaration

    Objective-C

    @property (nonatomic, readonly) MKCoordinateRegion region;

    Swift

    var region: MKCoordinateRegion { get }
  • The zoom level of the bounds.

    Declaration

    Objective-C

    @property (nonatomic) NSUInteger zoomLevel;

    Swift

    var zoomLevel: UInt { get set }
  • The zoom level of the bounds adjusted for Retina displays.

    When returning tiles for Retina displays, the next highest zoom level is returned to provide a tile image that is higher resolution.

    Declaration

    Objective-C

    @property (nonatomic, readonly) NSUInteger zoomLevelForScreenScale;

    Swift

    var zoomLevelForScreenScale: UInt { get }
  • Returns the x and y indexes of the map tile for the top-left map coordinate.

    Declaration

    Objective-C

    - (CGPoint)northwestTile:(BOOL)adjustForRetina;

    Swift

    func northwestTile(_ adjustForRetina: Bool) -> CGPoint

    Parameters

    adjustForRetina

    Specify YES if the zoom level used in the calculation should be adjusted for Retina displays.

    Return Value

    The tile x and y indexes.

  • Returns the x and y indexes of the map tile for the bottom-left map coordinate.

    Declaration

    Objective-C

    - (CGPoint)southwestTile:(BOOL)adjustForRetina;

    Swift

    func southwestTile(_ adjustForRetina: Bool) -> CGPoint

    Parameters

    adjustForRetina

    Specify YES if the zoom level used in the calculation should be adjusted for Retina displays.

    Return Value

    The tile x and y indexes.

  • Returns the x and y indexes of the map tile for the top-right map coordinate.

    Declaration

    Objective-C

    - (CGPoint)northeastTile:(BOOL)adjustForRetina;

    Swift

    func northeastTile(_ adjustForRetina: Bool) -> CGPoint

    Parameters

    adjustForRetina

    Specify YES if the zoom level used in the calculation should be adjusted for Retina displays.

    Return Value

    The tile x and y indexes.

  • Returns the x and y indexes of the map tile for the bottom-right map coordinate.

    Declaration

    Objective-C

    - (CGPoint)southeastTile:(BOOL)adjustForRetina;

    Swift

    func southeastTile(_ adjustForRetina: Bool) -> CGPoint

    Parameters

    adjustForRetina

    Specify YES if the zoom level used in the calculation should be adjusted for Retina displays.

    Return Value

    The tile x and y indexes.