subsurface/mobile-widgets
Lubomir I. Ivanov 5270688483 mapwidget.qml: add new logic for zooming and editing support
The editing support is added via dragging. It is handled via the
MouseArea's drag.target of the MapQuickItem. The drag target changes
with the model selectedUuid.

"mapAnimationZoomIn" now also does an initial zoom-out before moving
to a new location.

centerOnCoordinate() now pefroms calculations to determine how much
the animation needs to zoom out. What it does is it reduces the Map
zoomLevel util both the current and the new target coordinates are visible.
It then restores the zoomLevel and performs animation based on newZoomOut.

animateMapZoomIn() is now obsolete.

The patch also includes the following smaller changes:
- remove the setSelectedUuid() call in deselectMapLocation()
This is now handled in C++
- sets "defaultZoomIn" to 12.0
- use ">=" when determining if a mapItem text should be visible

Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
2017-07-28 07:31:11 -07:00
..
qml mapwidget.qml: add new logic for zooming and editing support 2017-07-28 07:31:11 -07:00
qmlmanager.cpp Mobile: honour location service time threshold 2017-07-25 22:12:19 +09:00
qmlmanager.h QML UI: add checkbox to show/hide developer menu 2017-07-23 03:20:58 +09:00
qmlmapwidgethelper.cpp mapwidgethelper: add methods for editing MapLocations 2017-07-28 07:31:11 -07:00
qmlmapwidgethelper.h mapwidgethelper: add methods for editing MapLocations 2017-07-28 07:31:11 -07:00
qmlprofile.cpp QML UI: adjust to modified logging API 2017-06-11 13:55:41 -07:00
qmlprofile.h Add SPDX header to mobile widgets and QML files 2017-04-29 13:32:55 -07:00