MQMapView

@interface MQMapView

An interactive, customizable map view with an interface similar to the one provided by Apple’s MapKit.

Using MQMapView, you can embed the map inside a view, allow users to manipulate it with standard gestures, animate the map between different viewpoints, and present information in the form of annotations and overlays.

  • Delegate for configuring the appearance of traffic annotations and shapes

    Declaration

    Objective-C

    @property (readwrite, nonatomic, nullable) id<MQMapViewTrafficDelegate>
        trafficDelegate;

    Swift

    @IBOutlet weak var trafficDelegate: MQMapViewTrafficDelegate? { get set }
  • Delegate for Point Of Interest interactions

    Declaration

    Objective-C

    @property (readwrite, nonatomic, nullable) id<MQMapViewPOIDelegate> poiDelegate;

    Swift

    @IBOutlet weak var poiDelegate: MQMapViewPOIDelegate? { get set }
  • Configures whether traffic is currently displayed or not.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) BOOL trafficEnabled;

    Swift

    var trafficEnabled: Int32 { get set }
  • When trafficEnabled is YES, will display traffic flow data on map. Default is NO.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) BOOL shouldShowTrafficFlows;

    Swift

    var shouldShowTrafficFlows: Int32 { get set }
  • When trafficEnabled is YES, will display traffic incidents on map. Default is NO.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) BOOL shouldShowTrafficIncidents;

    Swift

    var shouldShowTrafficIncidents: Int32 { get set }
  • When trafficEnabled is YES, will display traffic cameras on map. Default is NO.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) BOOL shouldShowTrafficCameras;

    Swift

    var shouldShowTrafficCameras: Int32 { get set }
  • List of traffic annotations currently on the map

    Declaration

    Objective-C

    @property (readonly, nonatomic, nonnull) NSArray *trafficAnnotations;

    Swift

    var trafficAnnotations: UnsafeMutablePointer<Int32> { get }
  • Can toggle between standard and satellite view. See MQMapType.h for options.

    Declaration

    Objective-C

    @property (assign, readwrite, nonatomic) MQMapType mapType;

    Swift

    var mapType: Int32 { get set }
  • URL of the style currently displayed in the receiver.

    Declaration

    Objective-C

    - (NSURL *)styleURL;

    Swift

    func styleURL() -> Any!
  • Setter for styleURL is not supported in the MapQuest SDK. You can not change the Style URL.

    Declaration

    Objective-C

    - (void)setStyleURL:(NSURL *)styleURL;

    Swift

    func setStyleURL(_ styleURL: Any!)
  • logoView property is not supported in the MapQuest SDK.

    Declaration

    Objective-C

    @property (readonly, nonatomic, nullable) UIImageView *logoView;

    Swift

    var logoView: UnsafeMutablePointer<Int32>? { get }
  • styleURL property is not supported in the MapQuest SDK.

    Declaration

    Objective-C

    - (nonnull NSArray<NSURL *> *)bundledStyleURLs;

    Swift

    func bundledStyleURLs() -> Any!
  • styleClasses is not supported in the MapQuest SDK.

    Declaration

    Objective-C

    - (nonnull NSString *)styleClasses;

    Swift

    func styleClasses() -> Any!
  • addStyleClass is not supported in the MapQuest SDK.

    Declaration

    Objective-C

    - (void)addStyleClass:(nonnull NSString *)styleClass;

    Swift

    func addStyleClass(_ styleClass: Any!)