MNMapView

open class MNMapView : NTMapView
  • Declaration

    Swift

    public override init!(frame: CGRect)
  • Declaration

    Swift

    required public init(coder aDecoder: NSCoder!)
  • Declaration

    Swift

    open override var accessibilityValue: String? { get set }
  • Declaration

    Swift

    open override func accessibilityIncrement()
  • Declaration

    Swift

    open override func accessibilityDecrement()
  • Declaration

    Swift

    open override func accessibilityActivate() -> Bool
  • Declaration

    Swift

    open override func accessibilityElementDidLoseFocus()
  • Declaration

    Swift

    open override func accessibilityElementDidBecomeFocused()
  • Declaration

    Swift

    open override func accessibilityPerformMagicTap() -> Bool
  • Declaration

    Swift

    public func setPanBounds(mapBounds: [MNMercator],
                             deltaRatioX: Double,
                             deltaRatioY: Double,
                             minDeltaX: Double,
                             minDeltaY: Double
    )
  • Move to a latitude, longitude location on map

    Declaration

    Swift

    public func moveToLocation(latitude: Double, longitude: Double)

    Parameters

    latitude

    latitude for the location on map

    longitude

    longitude for the location on map

  • Move to a x, y mercator location on map

    Declaration

    Swift

    public func moveToLocation(mercator: MNMercator)

    Parameters

    mercator

    the x, y mercator location on map

  • Declaration

    Swift

    public func moveToLocation(pos: NTMapPos?)
  • Move to a x, y mercator location with zoom and offset on map

    Declaration

    Swift

    public func moveToLocation(mercator: MNMercator, zoom: Float, yOffset: Double)

    Parameters

    mercator

    the x, y mercator location on map

    zoom

    the zoom level you want to set on map

    yOffset

    the y-offset for mercator passed in. If you don’t want offset, pass in 0.

  • Move to a x, y mercator location with zoom and duration on map

    Declaration

    Swift

    public func moveToLocation(mercator: MNMercator, zoom: Float, duration: Float)

    Parameters

    mercator

    the x, y mercator location on map

    zoom

    the zoom level you want to set on map

    duration

    the animation duration. Set to 0 to disable animation.

  • Move to a x, y mercator location with default navigation zoom level.

    Declaration

    Swift

    public func moveToLocationForNav(mercator: MNMercator, duration: Float)

    Parameters

    mercator

    the x, y mercator location on map

    duration

    the duration for the animation

  • Zoom out to default navigation zoom level.

    Declaration

    Swift

    public func zoomOutNav()
  • Tilts map to desired angle.

    Declaration

    Swift

    public func tiltMap(angle: Float, duration: Float)

    Parameters

    angle

    the tilt angle

    duration

    the duration for the animation