subsurface/mobile-widgets
Lubomir I. Ivanov 5db2460168 mapwidget.qml: implement centerOnRectangle()
First, this function calculates the zoom out effect until both the
current Map center and the target rectangle are visible - see the
"calculate zoom out" part.

Then it calculates a zoom level, so that the target rectangle
fits the viewport, but also so that the zoom is not too much (clamped).
see the "calculate zoom in" part.

NOTE: "centerStored" (the variable used to store the current map center)
is created using QtPositioning.coordinate(), because the code needs a new
object and not a reference of the map.center QGeoCoordinate object.

Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
2017-08-07 00:51:21 -07:00
..
qml mapwidget.qml: implement centerOnRectangle() 2017-08-07 00:51:21 -07:00
qmlmanager.cpp QML UI: enable modification of ratings 2017-08-02 18:49:47 -07:00
qmlmanager.h QML UI: enable modification of ratings 2017-08-02 18:49:47 -07:00
qmlmapwidgethelper.cpp mapwidgethelper: support tracking of all selected dive sites 2017-08-07 00:51:21 -07:00
qmlmapwidgethelper.h Switch new files to unix line endings 2017-07-28 22:01:36 -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