Class MKMapView

All Implemented Interfaces:
CALayerDelegate, NSCoding, NSObjectProtocol, UIAccessibilityIdentification, UIActivityItemsConfigurationProviding, UIAppearanceContainer, UICoordinateSpace, UIDynamicItem, UIFocusEnvironment, UIFocusItem, UIFocusItemContainer, UILargeContentViewerItem, UIPasteConfigurationSupporting, UIResponderStandardEditActions, UITraitEnvironment, UIUserActivityRestoring, ObjCProtocol

public class MKMapView
extends UIView
implements NSCoding
  • Constructor Details

    • MKMapView

      public MKMapView()
    • MKMapView

      protected MKMapView​(NSObject.Handle h, long handle)
    • MKMapView

      protected MKMapView​(NSObject.SkipInit skipInit)
    • MKMapView

      public MKMapView​(CGRect frame)
    • MKMapView

      public MKMapView​(NSCoder coder)
  • Method Details

    • getDelegate

      public MKMapViewDelegate getDelegate()
    • setDelegate

      public void setDelegate​(MKMapViewDelegate v)
    • getMapType

      public MKMapType getMapType()
    • setMapType

      public void setMapType​(MKMapType v)
    • getRegion

      public MKCoordinateRegion getRegion()
    • setRegion

      public void setRegion​(MKCoordinateRegion v)
    • getCenterCoordinate

      public CLLocationCoordinate2D getCenterCoordinate()
    • setCenterCoordinate

      public void setCenterCoordinate​(CLLocationCoordinate2D v)
    • getVisibleMapRect

      public MKMapRect getVisibleMapRect()
    • setVisibleMapRect

      public void setVisibleMapRect​(MKMapRect v)
    • getCamera

      public MKMapCamera getCamera()
    • setCamera

      public void setCamera​(MKMapCamera v)
    • getCameraZoomRange

      public MKMapCameraZoomRange getCameraZoomRange()
      Since:
      Available in iOS 13.0 and later.
    • setCameraZoomRange

      public void setCameraZoomRange​(MKMapCameraZoomRange v)
      Since:
      Available in iOS 13.0 and later.
    • getCameraBoundary

      public MKMapCameraBoundary getCameraBoundary()
      Since:
      Available in iOS 13.0 and later.
    • setCameraBoundary

      public void setCameraBoundary​(MKMapCameraBoundary v)
      Since:
      Available in iOS 13.0 and later.
    • isZoomEnabled

      public boolean isZoomEnabled()
    • setZoomEnabled

      public void setZoomEnabled​(boolean v)
    • isScrollEnabled

      public boolean isScrollEnabled()
    • setScrollEnabled

      public void setScrollEnabled​(boolean v)
    • isRotateEnabled

      public boolean isRotateEnabled()
    • setRotateEnabled

      public void setRotateEnabled​(boolean v)
    • isPitchEnabled

      public boolean isPitchEnabled()
    • setPitchEnabled

      public void setPitchEnabled​(boolean v)
    • showsCompass

      public boolean showsCompass()
      Since:
      Available in iOS 9.0 and later.
    • setShowsCompass

      public void setShowsCompass​(boolean v)
      Since:
      Available in iOS 9.0 and later.
    • showsScale

      public boolean showsScale()
      Since:
      Available in iOS 9.0 and later.
    • setShowsScale

      public void setShowsScale​(boolean v)
      Since:
      Available in iOS 9.0 and later.
    • getPointOfInterestFilter

      public MKPointOfInterestFilter getPointOfInterestFilter()
      Since:
      Available in iOS 13.0 and later.
    • setPointOfInterestFilter

      public void setPointOfInterestFilter​(MKPointOfInterestFilter v)
      Since:
      Available in iOS 13.0 and later.
    • showsPointsOfInterest

      @Deprecated public boolean showsPointsOfInterest()
      Deprecated.
      Deprecated in iOS 13.0. Use pointOfInterestFilter
    • setShowsPointsOfInterest

      @Deprecated public void setShowsPointsOfInterest​(boolean v)
      Deprecated.
      Deprecated in iOS 13.0. Use pointOfInterestFilter
    • showsBuildings

      public boolean showsBuildings()
    • setShowsBuildings

      public void setShowsBuildings​(boolean v)
    • showsTraffic

      public boolean showsTraffic()
      Since:
      Available in iOS 9.0 and later.
    • setShowsTraffic

      public void setShowsTraffic​(boolean v)
      Since:
      Available in iOS 9.0 and later.
    • showsUserLocation

      public boolean showsUserLocation()
    • setShowsUserLocation

      public void setShowsUserLocation​(boolean v)
    • getUserLocation

      public MKUserLocation getUserLocation()
    • getUserTrackingMode

      public MKUserTrackingMode getUserTrackingMode()
    • setUserTrackingMode

      public void setUserTrackingMode​(MKUserTrackingMode v)
    • isUserLocationVisible

      public boolean isUserLocationVisible()
    • getAnnotations

      public List<? extends MKAnnotation> getAnnotations()
    • getSelectedAnnotations

      public List<? extends MKAnnotation> getSelectedAnnotations()
    • setSelectedAnnotations

      public void setSelectedAnnotations​(List<? extends MKAnnotation> v)
    • getAnnotationVisibleRect

      public CGRect getAnnotationVisibleRect()
    • getLayerClass

      public static Class<? extends CALayer> getLayerClass()
    • getOverlays

      public List<? extends MKOverlay> getOverlays()
    • getDefaultAnnotationViewReuseIdentifier

      public static String getDefaultAnnotationViewReuseIdentifier()
      Since:
      Available in iOS 11.0 and later.
    • getDefaultClusterAnnotationViewReuseIdentifier

      public static String getDefaultClusterAnnotationViewReuseIdentifier()
      Since:
      Available in iOS 11.0 and later.
    • setRegion

      public void setRegion​(MKCoordinateRegion region, boolean animated)
    • setCenterCoordinate

      public void setCenterCoordinate​(CLLocationCoordinate2D coordinate, boolean animated)
    • getRegionThatFits

      public MKCoordinateRegion getRegionThatFits​(MKCoordinateRegion region)
    • setVisibleMapRect

      public void setVisibleMapRect​(MKMapRect mapRect, boolean animate)
    • getMapRectThatFits

      public MKMapRect getMapRectThatFits​(MKMapRect mapRect)
    • setVisibleMapRect

      public void setVisibleMapRect​(MKMapRect mapRect, UIEdgeInsets insets, boolean animate)
    • getMapRectThatFits

      public MKMapRect getMapRectThatFits​(MKMapRect mapRect, UIEdgeInsets insets)
    • setCamera

      public void setCamera​(MKMapCamera camera, boolean animated)
    • setCameraZoomRange

      public void setCameraZoomRange​(MKMapCameraZoomRange cameraZoomRange, boolean animated)
      Since:
      Available in iOS 13.0 and later.
    • setCameraBoundary

      public void setCameraBoundary​(MKMapCameraBoundary cameraBoundary, boolean animated)
      Since:
      Available in iOS 13.0 and later.
    • convertCoordinateToPointToView

      public CGPoint convertCoordinateToPointToView​(CLLocationCoordinate2D coordinate, UIView view)
    • convertPointToCoordinateFromView

      public CLLocationCoordinate2D convertPointToCoordinateFromView​(CGPoint point, UIView view)
    • convertRegionToRectToView

      public CGRect convertRegionToRectToView​(MKCoordinateRegion region, UIView view)
    • convertRectToRegionFromView

      public MKCoordinateRegion convertRectToRegionFromView​(CGRect rect, UIView view)
    • setUserTrackingMode

      public void setUserTrackingMode​(MKUserTrackingMode mode, boolean animated)
    • addAnnotation

      public void addAnnotation​(MKAnnotation annotation)
    • addAnnotations

      public void addAnnotations​(List<? extends MKAnnotation> annotations)
    • removeAnnotation

      public void removeAnnotation​(MKAnnotation annotation)
    • removeAnnotations

      public void removeAnnotations​(List<? extends MKAnnotation> annotations)
    • getAnnotations

      public Set<? extends MKAnnotation> getAnnotations​(MKMapRect mapRect)
    • getView

      public MKAnnotationView getView​(MKAnnotation annotation)
    • dequeueReusableAnnotationView

      public MKAnnotationView dequeueReusableAnnotationView​(String identifier)
    • dequeueReusableAnnotationView

      public MKAnnotationView dequeueReusableAnnotationView​(String identifier, MKAnnotation annotation)
      Since:
      Available in iOS 11.0 and later.
    • registerClass

      public void registerClass​(Class<?> viewClass, String identifier)
      Since:
      Available in iOS 11.0 and later.
    • selectAnnotation

      public void selectAnnotation​(MKAnnotation annotation, boolean animated)
    • deselectAnnotation

      public void deselectAnnotation​(MKAnnotation annotation, boolean animated)
    • showAnnotations

      public void showAnnotations​(List<? extends MKAnnotation> annotations, boolean animated)
    • getUserInterfaceLayoutDirection

      public static UIUserInterfaceLayoutDirection getUserInterfaceLayoutDirection​(UISemanticContentAttribute attribute)
      Since:
      Available in iOS 9.0 and later.
    • getUserInterfaceLayoutDirection

      public static UIUserInterfaceLayoutDirection getUserInterfaceLayoutDirection​(UISemanticContentAttribute semanticContentAttribute, UIUserInterfaceLayoutDirection layoutDirection)
      Since:
      Available in iOS 10.0 and later.
    • addOverlay

      public void addOverlay​(MKOverlay overlay, MKOverlayLevel level)
    • addOverlays

      public void addOverlays​(List<? extends MKOverlay> overlays, MKOverlayLevel level)
    • removeOverlay

      public void removeOverlay​(MKOverlay overlay)
    • removeOverlays

      public void removeOverlays​(List<? extends MKOverlay> overlays)
    • insertOverlay

      public void insertOverlay​(MKOverlay overlay, long index, MKOverlayLevel level)
    • insertOverlayAbove

      public void insertOverlayAbove​(MKOverlay overlay, MKOverlay sibling)
    • insertOverlayBelow

      public void insertOverlayBelow​(MKOverlay overlay, MKOverlay sibling)
    • exchangeOverlay

      public void exchangeOverlay​(MKOverlay overlay1, MKOverlay overlay2)
    • getOverlays

      public List<? extends MKOverlay> getOverlays​(MKOverlayLevel level)
    • getOverlayRenderer

      public MKOverlayRenderer getOverlayRenderer​(MKOverlay overlay)
    • getOverlayView

      @Deprecated public MKOverlayView getOverlayView​(MKOverlay overlay)
      Deprecated.
      Deprecated in iOS 13.0. Use -rendererForOverlay:
    • addOverlay

      public void addOverlay​(MKOverlay overlay)
    • addOverlays

      public void addOverlays​(List<? extends MKOverlay> overlays)
    • insertOverlay

      public void insertOverlay​(MKOverlay overlay, long index)
    • exchangeOverlay

      public void exchangeOverlay​(long index1, long index2)