MMKNavigationLayer
- Summary
- Instance methods
- getViewWith(_:)
- selectRoute(withRoute:)
- selectedRoute()
- addRouteViewListener(with:)
- removeRouteViewListener(with:)
- selectRequestPoint(withRequestPointIndex:)
- deselectRequestPoint()
- addRequestPointListener(with:)
- removeRequestPointListener(with:)
- addBalloonViewListener(withBalloonListener:)
- removeBalloonViewListener(withBalloonListener:)
- addListener(with:)
- removeListener(with:)
- removeFromMap()
- setShowBalloonsGeometryWithEnabled(_:)
- refreshStyle()
- is2DMode()
- set2DMode(withEnabled:)
- Properties
class MMKNavigationLayer : NSObject |
Undocumented
Summary
Instance methods
func getViewWith( route: MMKDrivingRoute) -> MMKRouteView_? |
func selectRoute(withRoute route: MMKRouteView?) |
func selectedRoute() -> MMKRouteView? |
func addRouteViewListener(with routeViewListener: MMKRouteViewListener) |
func removeRouteViewListener(with routeViewListener: MMKRouteViewListener) |
func selectRequestPoint(withRequestPointIndex requestPointIndex: UInt) |
func deselectRequestPoint() |
func addRequestPointListener(with requestPointListener: MMKRequestPointListener) |
func removeRequestPointListener(with requestPointListener: MMKRequestPointListener) |
func addBalloonViewListener(withBalloonListener balloonListener: MMKBalloonViewListener) |
func removeBalloonViewListener(withBalloonListener balloonListener: MMKBalloonViewListener) |
func addListener(with navigationLayerListener: MMKNavigationLayerListener) |
func removeListener(with navigationLayerListener: MMKNavigationLayerListener) |
func removeFromMap() |
func setShowBalloonsGeometryWithEnabled(_ enabled: Bool) |
func refreshStyle() |
func is2DMode() -> Bool Disabled by default |
func set2DMode(withEnabled enabled: Bool) |
Properties
var navigation: MMKNavigation { get } |
var routesSource: MMKRoutesSource { get } |
var routes: [MMKRouteView] { get } |
var isShowRequestPoints: Bool { get set } |
var isIsVisible: Bool { get set } |
var isValid: Bool { get } |
Instance methods
getViewWith(_:)
func getViewWith( route: MMKDrivingRoute) -> MMKRouteView_? |
Find appearance of route.
selectRoute(withRoute:)
func selectRoute(withRoute route: MMKRouteView?) |
NavigationLayer will try to show as much info as possible about selected route. For example if road event placemarks from different routes overlap, road event from selected route will be displayed, conflict will be hidden. None or one route can be selected at the same time. Pass nil/null to unselect route.
selectedRoute()
func selectedRoute() -> MMKRouteView? |
Undocumented
addRouteViewListener(with:)
func addRouteViewListener(with routeViewListener: MMKRouteViewListener) |
Add this listener if you wish to handle taps on routes.
The class does not retain the object in the 'routeViewListener' parameter. It is your responsibility to maintain a strong reference to the target object while it is attached to a class.
removeRouteViewListener(with:)
func removeRouteViewListener(with routeViewListener: MMKRouteViewListener) |
Undocumented
selectRequestPoint(withRequestPointIndex:)
func selectRequestPoint(withRequestPointIndex requestPointIndex: UInt) |
Selects a request point with specified index. Only one point can be selected at a time. If some other point is selected already, it will be deselected.
deselectRequestPoint()
func deselectRequestPoint() |
Deselects selected request point if any.
addRequestPointListener(with:)
func addRequestPointListener(with requestPointListener: MMKRequestPointListener) |
Add this listener if you wish to handle taps on request points.
The class does not retain the object in the 'requestPointListener' parameter. It is your responsibility to maintain a strong reference to the target object while it is attached to a class.
removeRequestPointListener(with:)
func removeRequestPointListener(with requestPointListener: MMKRequestPointListener) |
Undocumented
addBalloonViewListener(withBalloonListener:)
func addBalloonViewListener(withBalloonListener balloonListener: MMKBalloonViewListener) |
The class does not retain the object in the 'balloonListener' parameter. It is your responsibility to maintain a strong reference to the target object while it is attached to a class.
removeBalloonViewListener(withBalloonListener:)
func removeBalloonViewListener(withBalloonListener balloonListener: MMKBalloonViewListener) |
Undocumented
addListener(with:)
func addListener(with navigationLayerListener: MMKNavigationLayerListener) |
The class does not retain the object in the 'navigationLayerListener' parameter. It is your responsibility to maintain a strong reference to the target object while it is attached to a class.
removeListener(with:)
func removeListener(with navigationLayerListener: MMKNavigationLayerListener) |
Undocumented
removeFromMap()
func removeFromMap() |
Removes layer from map. No further operations with layer should be performed.
setShowBalloonsGeometryWithEnabled(_:)
func setShowBalloonsGeometryWithEnabled(_ enabled: Bool) |
for debug usage only
refreshStyle()
func refreshStyle() |
Force refresh style for all navigation layer objects.
is2DMode()
func is2DMode() -> Bool |
When in 2D mode: - map is switched to 2D mode - 'Free' and 'Following' camera modes have zero tilt - tilt changing gestures are disabled
Disabled by default
set2DMode(withEnabled:)
func set2DMode(withEnabled enabled: Bool) |
Undocumented
Properties
navigation
var navigation: MMKNavigation { get } |
Undocumented
camera
var camera: MMKCamera { get } |
Undocumented
routesSource
var routesSource: MMKRoutesSource { get } |
Current view mode
routes
var routes: [MMKRouteView] { get } |
Routes representation on the map.
isShowRequestPoints
var isShowRequestPoints: Bool { get set } |
Enabled by default.
isIsVisible
var isIsVisible: Bool { get set } |
Undocumented
isValid
var isValid: Bool { get } |
Tells if this object is valid or no. Any method called on an invalid object will throw an exception. The object becomes invalid only on UI thread, and only when its implementation depends on objects already destroyed by now. Please refer to general docs about the interface for details on its invalidation.