Class MapKit


  • public final class MapKit
    extends java.lang.Object
    • Field Detail

      • MKFeatureDisplayPriorityRequired

        public static final float MKFeatureDisplayPriorityRequired
        See Also:
        Constant Field Values
      • MKFeatureDisplayPriorityDefaultHigh

        public static final float MKFeatureDisplayPriorityDefaultHigh
        See Also:
        Constant Field Values
      • MKFeatureDisplayPriorityDefaultLow

        public static final float MKFeatureDisplayPriorityDefaultLow
        See Also:
        Constant Field Values
      • MKAnnotationViewZPriorityMax

        public static final float MKAnnotationViewZPriorityMax
        See Also:
        Constant Field Values
      • MKAnnotationViewZPriorityDefaultSelected

        public static final float MKAnnotationViewZPriorityDefaultSelected
        See Also:
        Constant Field Values
      • MKAnnotationViewZPriorityDefaultUnselected

        public static final float MKAnnotationViewZPriorityDefaultUnselected
        See Also:
        Constant Field Values
      • MKAnnotationViewZPriorityMin

        public static final float MKAnnotationViewZPriorityMin
        See Also:
        Constant Field Values
    • Method Detail

      • MKCoordinateSpanMake

        public static MKCoordinateSpan MKCoordinateSpanMake​(double latitudeDelta,
                                                            double longitudeDelta)
      • MKCoordinateRegionMakeWithDistance

        public static MKCoordinateRegion MKCoordinateRegionMakeWithDistance​(CLLocationCoordinate2D centerCoordinate,
                                                                            double latitudinalMeters,
                                                                            double longitudinalMeters)
      • MKMapPointForCoordinate

        public static MKMapPoint MKMapPointForCoordinate​(CLLocationCoordinate2D coordinate)
        Conversion between unprojected and projected coordinates
      • MKMetersPerMapPointAtLatitude

        public static double MKMetersPerMapPointAtLatitude​(double latitude)
        Conversion between distances and projected coordinates
      • MKMapPointsPerMeterAtLatitude

        public static double MKMapPointsPerMeterAtLatitude​(double latitude)
      • MKMetersBetweenMapPoints

        public static double MKMetersBetweenMapPoints​(MKMapPoint a,
                                                      MKMapPoint b)
      • MKMapPointMake

        public static MKMapPoint MKMapPointMake​(double x,
                                                double y)
        Geometric operations on MKMapPoint/Size/Rect. See CGGeometry.h for information on the CGFloat versions of these functions.
      • MKMapSizeMake

        public static MKMapSize MKMapSizeMake​(double width,
                                              double height)
      • MKMapRectMake

        public static MKMapRect MKMapRectMake​(double x,
                                              double y,
                                              double width,
                                              double height)
      • MKMapRectGetMinX

        public static double MKMapRectGetMinX​(MKMapRect rect)
      • MKMapRectGetMinY

        public static double MKMapRectGetMinY​(MKMapRect rect)
      • MKMapRectGetMidX

        public static double MKMapRectGetMidX​(MKMapRect rect)
      • MKMapRectGetMidY

        public static double MKMapRectGetMidY​(MKMapRect rect)
      • MKMapRectGetMaxX

        public static double MKMapRectGetMaxX​(MKMapRect rect)
      • MKMapRectGetMaxY

        public static double MKMapRectGetMaxY​(MKMapRect rect)
      • MKMapRectGetWidth

        public static double MKMapRectGetWidth​(MKMapRect rect)
      • MKMapRectGetHeight

        public static double MKMapRectGetHeight​(MKMapRect rect)
      • MKMapPointEqualToPoint

        public static boolean MKMapPointEqualToPoint​(MKMapPoint point1,
                                                     MKMapPoint point2)
      • MKMapSizeEqualToSize

        public static boolean MKMapSizeEqualToSize​(MKMapSize size1,
                                                   MKMapSize size2)
      • MKMapRectEqualToRect

        public static boolean MKMapRectEqualToRect​(MKMapRect rect1,
                                                   MKMapRect rect2)
      • MKMapRectIsNull

        public static boolean MKMapRectIsNull​(MKMapRect rect)
      • MKMapRectIsEmpty

        public static boolean MKMapRectIsEmpty​(MKMapRect rect)
      • MKStringFromMapPoint

        public static java.lang.String MKStringFromMapPoint​(MKMapPoint point)
      • MKStringFromMapSize

        public static java.lang.String MKStringFromMapSize​(MKMapSize size)
      • MKStringFromMapRect

        public static java.lang.String MKStringFromMapRect​(MKMapRect rect)
      • MKMapRectInset

        public static MKMapRect MKMapRectInset​(MKMapRect rect,
                                               double dx,
                                               double dy)
      • MKMapRectOffset

        public static MKMapRect MKMapRectOffset​(MKMapRect rect,
                                                double dx,
                                                double dy)
      • MKMapRectDivide

        public static void MKMapRectDivide​(MKMapRect rect,
                                           MKMapRect slice,
                                           MKMapRect remainder,
                                           double amount,
                                           int edge)
      • MKMapRectContainsPoint

        public static boolean MKMapRectContainsPoint​(MKMapRect rect,
                                                     MKMapPoint point)
      • MKMapRectContainsRect

        public static boolean MKMapRectContainsRect​(MKMapRect rect1,
                                                    MKMapRect rect2)
      • MKMapRectIntersectsRect

        public static boolean MKMapRectIntersectsRect​(MKMapRect rect1,
                                                      MKMapRect rect2)
      • MKMapRectSpans180thMeridian

        public static boolean MKMapRectSpans180thMeridian​(MKMapRect rect)
      • MKMapRectRemainder

        public static MKMapRect MKMapRectRemainder​(MKMapRect rect)
        For map rects that span the 180th meridian, this returns the portion of the rect that lies outside of the world rect wrapped around to the other side of the world. The portion of the rect that lies inside the world rect can be determined with MKMapRectIntersection(rect, MKMapRectWorld).
      • MKRoadWidthAtZoomScale

        public static double MKRoadWidthAtZoomScale​(double zoomScale)
        Road widths are typically not drawn to scale on the map. This function returns the approximate width in points of roads at the specified zoomScale. The result of this function is suitable for use with CGContextSetLineWidth.
      • MKMapSizeWorld

        public static MKMapSize MKMapSizeWorld()
      • MKMapRectWorld

        public static MKMapRect MKMapRectWorld()
        The rect that contains every map point in the world.
      • MKMapRectNull

        public static MKMapRect MKMapRectNull()
      • MKLaunchOptionsDirectionsModeKey

        public static java.lang.String MKLaunchOptionsDirectionsModeKey()
        Key to a directions mode
      • MKLaunchOptionsMapTypeKey

        public static java.lang.String MKLaunchOptionsMapTypeKey()
        Key to an NSNumber corresponding to a MKMapType
      • MKLaunchOptionsShowsTrafficKey

        public static java.lang.String MKLaunchOptionsShowsTrafficKey()
        Key to a boolean NSNumber
      • MKLaunchOptionsDirectionsModeDefault

        public static java.lang.String MKLaunchOptionsDirectionsModeDefault()
        Will pick the best directions mode, given the user's preferences
      • MKLaunchOptionsDirectionsModeDriving

        public static java.lang.String MKLaunchOptionsDirectionsModeDriving()
      • MKLaunchOptionsDirectionsModeWalking

        public static java.lang.String MKLaunchOptionsDirectionsModeWalking()
      • MKLaunchOptionsDirectionsModeTransit

        public static java.lang.String MKLaunchOptionsDirectionsModeTransit()
      • MKLaunchOptionsMapCenterKey

        public static java.lang.String MKLaunchOptionsMapCenterKey()
        Key to an NSValue-encoded CLLocationCoordinate2D
      • MKLaunchOptionsMapSpanKey

        public static java.lang.String MKLaunchOptionsMapSpanKey()
        Key to an NSValue-encoded MKCoordinateSpan
      • MKLaunchOptionsCameraKey

        public static java.lang.String MKLaunchOptionsCameraKey()
        Key to MKMapCamera object
      • MKAnnotationCalloutInfoDidChangeNotification

        public static java.lang.String MKAnnotationCalloutInfoDidChangeNotification()
        Post this notification to re-query callout information.
      • MKErrorDomain

        public static java.lang.String MKErrorDomain()
      • MKMapItemTypeIdentifier

        public static java.lang.String MKMapItemTypeIdentifier()
      • MKMapViewDefaultAnnotationViewReuseIdentifier

        public static java.lang.String MKMapViewDefaultAnnotationViewReuseIdentifier()
      • MKMapViewDefaultClusterAnnotationViewReuseIdentifier

        public static java.lang.String MKMapViewDefaultClusterAnnotationViewReuseIdentifier()
      • MKPointOfInterestCategoryAirport

        public static java.lang.String MKPointOfInterestCategoryAirport()
      • MKPointOfInterestCategoryAmusementPark

        public static java.lang.String MKPointOfInterestCategoryAmusementPark()
      • MKPointOfInterestCategoryAquarium

        public static java.lang.String MKPointOfInterestCategoryAquarium()
      • MKPointOfInterestCategoryATM

        public static java.lang.String MKPointOfInterestCategoryATM()
      • MKPointOfInterestCategoryBakery

        public static java.lang.String MKPointOfInterestCategoryBakery()
      • MKPointOfInterestCategoryBank

        public static java.lang.String MKPointOfInterestCategoryBank()
      • MKPointOfInterestCategoryBeach

        public static java.lang.String MKPointOfInterestCategoryBeach()
      • MKPointOfInterestCategoryBrewery

        public static java.lang.String MKPointOfInterestCategoryBrewery()
      • MKPointOfInterestCategoryCafe

        public static java.lang.String MKPointOfInterestCategoryCafe()
      • MKPointOfInterestCategoryCampground

        public static java.lang.String MKPointOfInterestCategoryCampground()
      • MKPointOfInterestCategoryCarRental

        public static java.lang.String MKPointOfInterestCategoryCarRental()
      • MKPointOfInterestCategoryEVCharger

        public static java.lang.String MKPointOfInterestCategoryEVCharger()
      • MKPointOfInterestCategoryFireStation

        public static java.lang.String MKPointOfInterestCategoryFireStation()
      • MKPointOfInterestCategoryFitnessCenter

        public static java.lang.String MKPointOfInterestCategoryFitnessCenter()
      • MKPointOfInterestCategoryFoodMarket

        public static java.lang.String MKPointOfInterestCategoryFoodMarket()
      • MKPointOfInterestCategoryGasStation

        public static java.lang.String MKPointOfInterestCategoryGasStation()
      • MKPointOfInterestCategoryHospital

        public static java.lang.String MKPointOfInterestCategoryHospital()
      • MKPointOfInterestCategoryHotel

        public static java.lang.String MKPointOfInterestCategoryHotel()
      • MKPointOfInterestCategoryLaundry

        public static java.lang.String MKPointOfInterestCategoryLaundry()
      • MKPointOfInterestCategoryLibrary

        public static java.lang.String MKPointOfInterestCategoryLibrary()
      • MKPointOfInterestCategoryMarina

        public static java.lang.String MKPointOfInterestCategoryMarina()
      • MKPointOfInterestCategoryMovieTheater

        public static java.lang.String MKPointOfInterestCategoryMovieTheater()
      • MKPointOfInterestCategoryMuseum

        public static java.lang.String MKPointOfInterestCategoryMuseum()
      • MKPointOfInterestCategoryNationalPark

        public static java.lang.String MKPointOfInterestCategoryNationalPark()
      • MKPointOfInterestCategoryNightlife

        public static java.lang.String MKPointOfInterestCategoryNightlife()
      • MKPointOfInterestCategoryPark

        public static java.lang.String MKPointOfInterestCategoryPark()
      • MKPointOfInterestCategoryParking

        public static java.lang.String MKPointOfInterestCategoryParking()
      • MKPointOfInterestCategoryPharmacy

        public static java.lang.String MKPointOfInterestCategoryPharmacy()
      • MKPointOfInterestCategoryPolice

        public static java.lang.String MKPointOfInterestCategoryPolice()
      • MKPointOfInterestCategoryPostOffice

        public static java.lang.String MKPointOfInterestCategoryPostOffice()
      • MKPointOfInterestCategoryPublicTransport

        public static java.lang.String MKPointOfInterestCategoryPublicTransport()
      • MKPointOfInterestCategoryRestaurant

        public static java.lang.String MKPointOfInterestCategoryRestaurant()
      • MKPointOfInterestCategoryRestroom

        public static java.lang.String MKPointOfInterestCategoryRestroom()
      • MKPointOfInterestCategorySchool

        public static java.lang.String MKPointOfInterestCategorySchool()
      • MKPointOfInterestCategoryStadium

        public static java.lang.String MKPointOfInterestCategoryStadium()
      • MKPointOfInterestCategoryStore

        public static java.lang.String MKPointOfInterestCategoryStore()
      • MKPointOfInterestCategoryTheater

        public static java.lang.String MKPointOfInterestCategoryTheater()
      • MKPointOfInterestCategoryUniversity

        public static java.lang.String MKPointOfInterestCategoryUniversity()
      • MKPointOfInterestCategoryWinery

        public static java.lang.String MKPointOfInterestCategoryWinery()
      • MKPointOfInterestCategoryZoo

        public static java.lang.String MKPointOfInterestCategoryZoo()
      • MKMapCameraZoomDefault

        public static double MKMapCameraZoomDefault()
      • MKPointsOfInterestRequestMaxRadius

        public static double MKPointsOfInterestRequestMaxRadius()