diff options
author | Michal Klocek <michal.klocek@theqtcompany.com> | 2015-02-13 15:34:22 +0100 |
---|---|---|
committer | Michal Klocek <michal.klocek@theqtcompany.com> | 2015-04-13 14:54:46 +0000 |
commit | c923caef4dcae98699c55e7bf770fa9b0e1004c6 (patch) | |
tree | d043067903c65a43b2e9675165ba7e25e1692795 /examples/location/mapviewer | |
parent | 5b26a3607f7609f798bd40b4ed475c9e4bc6175d (diff) | |
download | qtlocation-c923caef4dcae98699c55e7bf770fa9b0e1004c6.tar.gz |
Change 'branding' of mapviewer example.
Remove not existing nokia POIs.
Use The Qt Company POIs instead.
Change-Id: Id16ada3ca977b7040047ec65c57217ef9633dc6b
Reviewed-by: Alex Blasche <alexander.blasche@theqtcompany.com>
Diffstat (limited to 'examples/location/mapviewer')
-rw-r--r-- | examples/location/mapviewer/content/map/MapComponent.qml | 48 | ||||
-rw-r--r-- | examples/location/mapviewer/mapviewer.qml | 20 |
2 files changed, 19 insertions, 49 deletions
diff --git a/examples/location/mapviewer/content/map/MapComponent.qml b/examples/location/mapviewer/content/map/MapComponent.qml index 9db45134..a2936056 100644 --- a/examples/location/mapviewer/content/map/MapComponent.qml +++ b/examples/location/mapviewer/content/map/MapComponent.qml @@ -49,8 +49,8 @@ Map { //! [coord] center { - latitude: -27.5796 - longitude: 153.1003 + latitude: 59.9485 + longitude: 10.7686 } //! [coord] @@ -97,42 +97,12 @@ Map { } } - MapCircle { - id: poiEightMilePlains - center { - latitude: -27.5758 - longitude: 153.0881 - } - - radius: 1800 - color: "green" - border.width: 2 - border.color: "#242424" - opacity: 0.7 - } - - MapQuickItem { - sourceItem: Text{ - text: "Eight Mile Plains" - color:"#242424" - font.bold: true - styleColor: "#ECECEC" - style: Text.Outline - } - coordinate { - latitude: -27.59 - longitude: 153.084 - } - anchorPoint.x: 0 - anchorPoint.y: 0 - } - MapQuickItem { - id: poiNokia + id: poiTheQtComapny sourceItem: Rectangle { width: 14; height: 14; color: "#1c94fc"; border.width: 2; border.color: "#242424"; smooth: true; radius: 7 } coordinate { - latitude: -27.5796 - longitude: 153.1003 + latitude: 59.9485 + longitude: 10.7686 } opacity:0.7 anchorPoint.x: sourceItem.width/2 @@ -141,15 +111,15 @@ Map { MapQuickItem { sourceItem: Text{ - text: "Nokia" + text: "The Qt Company" color:"#242424" font.bold: true styleColor: "#ECECEC" style: Text.Outline } - coordinate: poiNokia.coordinate - anchorPoint.x: -poiNokia.sourceItem.width * 0.5 - anchorPoint.y: poiNokia.sourceItem.height * 1.5 + coordinate: poiTheQtComapny.coordinate + anchorPoint.x: -poiTheQtComapny.sourceItem.width * 0.5 + anchorPoint.y: poiTheQtComapny.sourceItem.height * 1.5 } diff --git a/examples/location/mapviewer/mapviewer.qml b/examples/location/mapviewer/mapviewer.qml index 64de94be..28fc8100 100644 --- a/examples/location/mapviewer/mapviewer.qml +++ b/examples/location/mapviewer/mapviewer.qml @@ -56,24 +56,24 @@ ApplicationWindow { property variant parameters //defaults - property variant fromCoordinate: QtPositioning.coordinate(-27.575, 153.088) - property variant toCoordinate: QtPositioning.coordinate(-27.465, 153.023) + property variant fromCoordinate: QtPositioning.coordinate(59.9483, 10.7695) + property variant toCoordinate: QtPositioning.coordinate(59.9645, 10.671) Address { id :fromAddress - street: "53 Brandl St" - city: "Eight Mile Plains" - country: "Australia" + street: "Sandakerveien 116" + city: "Oslo" + country: "Norway" state : "" - postalCode: "" + postalCode: "0484" } - Address { id: toAddress - street: "Heal st" - city: "New Farm" - country: "Australia" + street: "Holmenkollveien 140" + city: "Oslo" + country: "Norway" + postalCode: "0791" } menuBar: MainMenu { |