summaryrefslogtreecommitdiffstats
path: root/mobile-widgets/qml
diff options
context:
space:
mode:
authorGravatar Lubomir I. Ivanov <neolit123@gmail.com>2017-08-07 02:04:23 +0300
committerGravatar Dirk Hohndel <dirk@hohndel.org>2017-08-07 00:51:21 -0700
commitd421660f91d56ac434860a1deff17eeeacbc7e26 (patch)
tree7df8fac4ec0ff3c780ff95be45a768df429d1816 /mobile-widgets/qml
parent6fb841887dbba208d47498a1746da46d659d959b (diff)
downloadsubsurface-d421660f91d56ac434860a1deff17eeeacbc7e26.tar.gz
mapwidgethelper: support tracking of all selected dive sites
MapWidgetHelper::centerOnDiveSite() now checks if more than one dive sites are selected and finds the most top-left and bottom-right ones in the coordinate system to form a rectangle. It also supports the special cases where a selected dive site does not have coordinates or the case where only a single dive site with GPS coordinates are selected. TODO: implement mapwidget.qml::centerOnRectangle() This QML function will receive a QGeoCoordinate based rectangle which has to be centered in the viewport with animation. Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
Diffstat (limited to 'mobile-widgets/qml')
-rw-r--r--mobile-widgets/qml/MapWidget.qml4
1 files changed, 4 insertions, 0 deletions
diff --git a/mobile-widgets/qml/MapWidget.qml b/mobile-widgets/qml/MapWidget.qml
index f3853de74..42bc546ce 100644
--- a/mobile-widgets/qml/MapWidget.qml
+++ b/mobile-widgets/qml/MapWidget.qml
@@ -171,6 +171,10 @@ Item {
mapAnimationZoomOut.stop()
}
+ function centerOnRectangle(topLeft, bottomRight, center) {
+ // TODO
+ }
+
function deselectMapLocation() {
animateMapZoomOut()
}