navigation: qml: default map center to null island 95/12095/1
authorMatt Ranostay <matt.ranostay@konsulko.com>
Wed, 22 Nov 2017 21:31:41 +0000 (13:31 -0800)
committerMatt Ranostay <matt.ranostay@konsulko.com>
Wed, 22 Nov 2017 21:31:56 +0000 (13:31 -0800)
Currently it is defaulting to London before it gets a GPS or GeoClue location
data which can be confusing. Better to center it on open water till location
is known

Bug-AGL: SPEC-1068
Change-Id: I9f4af70c194eb290ce5670c802b9b87f6475de11
Signed-off-by: Matt Ranostay <matt.ranostay@konsulko.com>
app/map/MapComponent.qml

index f8e8e37..84ee7fe 100644 (file)
@@ -75,6 +75,13 @@ Map {
     signal showPointMenu(variant coordinate)
     signal showRouteList()
 
+
+    center {
+        // null island
+        latitude: 0
+        longitude: 0
+    }
+
     function geocodeMessage()
     {
         var street, district, city, county, state, countryCode, country, postalCode, latitude, longitude, text