From 73869e7b497c8cb08750eb83942ac6d4306cfe07 Mon Sep 17 00:00:00 2001 From: Tobias Fella Date: Mon, 13 Feb 2023 22:20:53 +0100 Subject: [PATCH] Use KDE's map config --- src/qml/Component/FullScreenMap.qml | 8 ++++++++ src/qml/Component/LocationPage.qml | 8 ++++++++ src/qml/Component/Timeline/LocationDelegate.qml | 8 ++++++++ 3 files changed, 24 insertions(+) diff --git a/src/qml/Component/FullScreenMap.qml b/src/qml/Component/FullScreenMap.qml index 49ad91305..ce8b3a6a7 100644 --- a/src/qml/Component/FullScreenMap.qml +++ b/src/qml/Component/FullScreenMap.qml @@ -39,6 +39,14 @@ ApplicationWindow { zoomLevel: 15 plugin: Plugin { name: "osm" + PluginParameter { + name: "osm.useragent" + value: Application.name + "/" + Application.version + " (kde-devel@kde.org)" + } + PluginParameter { + name: "osm.mapping.providersrepository.address" + value: "https://autoconfig.kde.org/qtlocation/" + } } MapCircle { radius: 1500 / map.zoomLevel diff --git a/src/qml/Component/LocationPage.qml b/src/qml/Component/LocationPage.qml index 5f94d246d..df12b37d5 100644 --- a/src/qml/Component/LocationPage.qml +++ b/src/qml/Component/LocationPage.qml @@ -23,6 +23,14 @@ Kirigami.Page { anchors.fill: parent plugin: Plugin { name: "osm" + PluginParameter { + name: "osm.useragent" + value: Application.name + "/" + Application.version + " (kde-devel@kde.org)" + } + PluginParameter { + name: "osm.mapping.providersrepository.address" + value: "https://autoconfig.kde.org/qtlocation/" + } } MapItemView { diff --git a/src/qml/Component/Timeline/LocationDelegate.qml b/src/qml/Component/Timeline/LocationDelegate.qml index e442c1cd4..bb41af1e5 100644 --- a/src/qml/Component/Timeline/LocationDelegate.qml +++ b/src/qml/Component/Timeline/LocationDelegate.qml @@ -32,6 +32,14 @@ TimelineContainer { zoomLevel: 15 plugin: Plugin { name: "osm" + PluginParameter { + name: "osm.useragent" + value: Application.name + "/" + Application.version + " (kde-devel@kde.org)" + } + PluginParameter { + name: "osm.mapping.providersrepository.address" + value: "https://autoconfig.kde.org/qtlocation/" + } } MapCircle { radius: 1500 / map.zoomLevel