subsurface/map-widget
Lubomir I. Ivanov 48c032bb8e mapwidget-mobile: do not animate the first selection
centerOnLocationHard() is added in MapPage.qml so that
on `firstRun` the map is hard panned to the desired location
without animation.

This affects the selection of a new "Dive details" -> "Map it" or
when opening a GPS location in the map.

The idea behind this change is to avoid starting the map animation
from an arbitrary location such as [0,0] or London. Also, to not
start the map zoomed out completely and then zoom in on a selected
dive.

For this change to work, add the helper getCoordinatesForUUID()
to qmlmapwidgethelper.cpp/.h and use it to obtain the
QGeoCoordinates for a dive site UUID.

Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
2018-04-02 13:47:43 -07:00
..
qml MapWidgetContextMenu.qml: improve the action text 2018-03-15 23:27:18 +02:00
qmlmapwidgethelper.cpp mapwidget-mobile: do not animate the first selection 2018-04-02 13:47:43 -07:00
qmlmapwidgethelper.h mapwidget-mobile: do not animate the first selection 2018-04-02 13:47:43 -07:00