MKMapView

class MKMapView : NSView, NSCoding
  • zoomIn zooms the map in approximately the same amount as a single click on the zoom controls. If zooming is not enabled, then this does nothing.

    Declaration

    Swift

    func zoomIn()
  • zoomOut zooms the map out approximately the same amount as a single click on the zoom controls. If zooming is not enabled, then this does nothing.

    Declaration

    Swift

    func zoomOut()
  • snapToNorth rotates the map, if necessary, in order to point it north. If already pointing north or if rotations are not enabled, then this does nothing.

    Declaration

    Swift

    func snapToNorth()
  • scrollToCurrentLocation will obtain the user’s current location and attempt to scroll that map to that position.

    Declaration

    Swift

    func scrollToCurrentLocation()