Navigator QML Type▲
-
Import Statement: import Qt.labs.location 1.0
-
Group: Navigator is part of QML Maps Plugin
Detailed Description▲
The Navigator purpose is to use a plugin's turn-by-turn navigation implementation in a QML application in a seamless manner. This object may take control of the map position, orientation, tilting and zoom, as well as changing the map style, elements on the map such as direction information. In certain cases, it may also restrict user interaction with the Map and with the items on it.
Property Documentation▲
active : bool▲
This property tells whether the Navigator is navigating or not. Set this property to true to start the navigation. Set it to false to stop an active navigation session.
currentRoute : Route▲
This read-only property holds the current route the navigator following. This can be the same as route, or can be different, if the navigator cannot follow the user-specified route. For example if the position coming from positionSource is considerably off route, the navigation engine might recalculate and start following a new route.
See Also▲
See also Route
currentSegment : int▲
This read-only property holds the index of the current RouteSegment in the currentRoute.
See Also▲
See also RouteSegment
map : Map▲
This property holds the Map that the navigator is in charge of controlling.
This is a write-once property. Once the Navigator has a Map associated with it, any attempted modifications of the map property will be ignored.
See Also▲
See also Map
navigatorReady : bool▲
plugin : Plugin▲
This property holds the plugin which provides the navigation functionality.
This is a write-once property. Once the Navigator has a plugin associated with it, any attempted modifications of the plugin property will be ignored.
See Also▲
See also Plugin
positionSource : PositionSource▲
This property holds the PositionSource that the navigator will receive position updates from to perform the navigation.
This is a write-once property. Once the Navigator has a PositionSource associated with it, any attempted modifications of the positionSource property will be ignored.
See Also▲
See also PositionSource
route : Route▲
This property holds the Route that the navigator is supposed to use to perform the navigation.
This property is not necessarily the same as currentRoute. currentRoute may differ, during routing, for various reasons. It is reasonable to assume, however, that currentRoute's destination will be the same as route's destination. Setting this property while a navigation session is ongoing will stop the navigation.
See Also▲
See also Route
trackPositionSource : bool▲
This property tells whether the Navigator should control the Map camera to keep track of position source updates. This property is enabled (true) by default, and setting it to false is useful in cases where e.g. the user starts gesturing over the map area.
Navigator plugins can also control this property directly e.g. user map interaction could trigger the property change. Honoring the user-specified value of this property is plugin dependent.