From f9044b4bc9b2201b6874ff03f7988f5127c5b73d Mon Sep 17 00:00:00 2001 From: Matt Ranostay Date: Tue, 24 Sep 2019 00:29:55 -0700 Subject: qml: add MapBox copyright attribution Add attribution that is required from usage of MapBox maps Ref: https://docs.mapbox.com/help/how-mapbox-works/attribution/ Bug-AGL: SPEC-2822 Change-Id: I69990c92031f51721e2aef9b230a02c0a2e84b76 Signed-off-by: Matt Ranostay --- app/images/images.qrc | 1 + app/images/mapbox_logo.svg | 1 + app/navigation.qml | 26 +++++++++++++++++++++++--- 3 files changed, 25 insertions(+), 3 deletions(-) create mode 100644 app/images/mapbox_logo.svg diff --git a/app/images/images.qrc b/app/images/images.qrc index e710ac2..6d0bccb 100644 --- a/app/images/images.qrc +++ b/app/images/images.qrc @@ -25,5 +25,6 @@ MUTCD_RS-113.svg posimark_r.png position02.svg + mapbox_logo.svg diff --git a/app/images/mapbox_logo.svg b/app/images/mapbox_logo.svg new file mode 100644 index 0000000..6ef4dab --- /dev/null +++ b/app/images/mapbox_logo.svg @@ -0,0 +1 @@ + diff --git a/app/navigation.qml b/app/navigation.qml index de08bf6..b1b5d9f 100755 --- a/app/navigation.qml +++ b/app/navigation.qml @@ -664,7 +664,7 @@ ApplicationWindow { anchors.right: parent.right anchors.rightMargin: 125 anchors.bottom: parent.bottom - anchors.bottomMargin: 125 + anchors.bottomMargin: 175 } BtnMapDirection { @@ -688,7 +688,7 @@ ApplicationWindow { anchors.left: parent.left anchors.leftMargin: 25 anchors.bottom: parent.bottom - anchors.bottomMargin: 250 + anchors.bottomMargin: 325 } BtnEnlarge { @@ -696,7 +696,7 @@ ApplicationWindow { anchors.left: parent.left anchors.leftMargin: 25 anchors.bottom: parent.bottom - anchors.bottomMargin: 125 + anchors.bottomMargin: 175 } ImgDestinationDirection { @@ -714,4 +714,24 @@ ApplicationWindow { anchors.left: img_destination_direction.right anchors.leftMargin: 20 } + + Image { + visible: map.plugin.name === "mapbox" + anchors.left: parent.left + anchors.leftMargin: 35 + anchors.bottom: parent.bottom + anchors.bottomMargin: 10 + scale: 1.5 + source: "images/mapbox_logo.svg" + } + + Label { + visible: map.plugin.name === "mapbox" + font.pixelSize: 18 + anchors.right: parent.right + anchors.rightMargin: 25 + anchors.bottom: parent.bottom + anchors.bottomMargin: 10 + text: "© Mapbox | © OpenStreetMap | Improve this map" + } } -- cgit 1.2.3-korg