summaryrefslogtreecommitdiffstats
path: root/app/mapviewer.qml
diff options
context:
space:
mode:
authorMatt Ranostay <matt.ranostay@konsulko.com>2017-11-14 20:53:42 -0800
committerMatt Ranostay <matt.ranostay@konsulko.com>2017-11-21 23:11:20 -0800
commit31a4cd81829e4a95b76d6cbebd9e069ae16943f8 (patch)
tree711b9f6155ff8b8b99dac341be8e31d6ada05ae8 /app/mapviewer.qml
parent1e45e4460228a34ca2ecbae103d5d6a6e15e077b (diff)
navigation: gps: add gps geolocation support
Use GPS binding to get current location for navigation Bug-AGL: SPEC-1068 Change-Id: Ie708117499b342f86c60674c83f0222857a67bee Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
Diffstat (limited to 'app/mapviewer.qml')
-rw-r--r--app/mapviewer.qml6
1 files changed, 6 insertions, 0 deletions
diff --git a/app/mapviewer.qml b/app/mapviewer.qml
index a2d5c36..cada08b 100644
--- a/app/mapviewer.qml
+++ b/app/mapviewer.qml
@@ -48,6 +48,7 @@ import AGL.Demo.Controls 1.0
import "map"
import "menus"
import "helper.js" as Helper
+import "api" as API
ApplicationWindow {
id: appWindow
@@ -60,6 +61,11 @@ ApplicationWindow {
property variant toCoordinate: QtPositioning.coordinate(59.9645, 10.671)
//! [routecoordinate]
+ API.GPS {
+ id: gps
+ url: bindingAddress
+ }
+
function createMap(provider)
{
var plugin