From 7937cd625d977cd67c3c468ff69fb749d13a0e11 Mon Sep 17 00:00:00 2001 From: demmm Date: Fri, 13 May 2022 13:17:19 +0200 Subject: [PATCH] [localeq]Map.qml needed fixes esri has several bugs, not showing for all locations, zooming on Americas broken use osm as default, set preferred, so esri can be fallback remove Label section for mouse movement, showing coordinates not really useful, issue with mouse grabbing is back with it --- src/modules/localeq/Map.qml | 12 +++--------- 1 file changed, 3 insertions(+), 9 deletions(-) diff --git a/src/modules/localeq/Map.qml b/src/modules/localeq/Map.qml index 5972b5c15..ab0a01a58 100644 --- a/src/modules/localeq/Map.qml +++ b/src/modules/localeq/Map.qml @@ -1,6 +1,6 @@ /* === This file is part of Calamares - === * - * SPDX-FileCopyrightText: 2020 Anke Boersma + * SPDX-FileCopyrightText: 2020 - 2022 Anke Boersma * SPDX-License-Identifier: GPL-3.0-or-later * * Calamares is Free Software: see the License-Identifier above. @@ -112,7 +112,7 @@ Column { Plugin { id: mapPlugin - name: "esri" // "esri", "here", "itemsoverlay", "mapbox", "mapboxgl", "osm" + preferred: ["osm", "esri"] // "esri", "here", "itemsoverlay", "mapbox", "mapboxgl", "osm" } Map { @@ -121,7 +121,7 @@ Column { plugin: mapPlugin activeMapType: supportedMapTypes[0] //might be desirable to set zoom level configurable? - zoomLevel: 5 + zoomLevel: 7 bearing: 0 tilt: 0 copyrightsVisible : true @@ -167,12 +167,6 @@ Column { anchors.fill: map hoverEnabled: true property var coordinate: map.toCoordinate(Qt.point(mouseX, mouseY)) - Label { - x: parent.mouseX - width -5 - y: parent.mouseY - height - 5 - text: "%1, %2".arg( - parent.coordinate.latitude).arg(parent.coordinate.longitude) - } onClicked: { marker.coordinate = coordinate