subsurface/map-widget
Lubomir I. Ivanov 1d80b08a8f mapwidget.qml: more minor improvements
- Add the helper coordIsValid() and use it in centerOnCoordinate().
This checks for NaN coordinates and prevents an infinite while() loop.
- Use '-= 1.0' instead of '--' to be more clear that the decremented
variable is a float
- Store the current center with 'centerStored' in
centerOnCoordinate(). Fixes a possible zoom out glitch.
- use Math.floor() to convert 'zoomLevel' to integer when estimating
zoomOut in centerOn*()

Signed-off-by: Lubomir I. Ivanov <neolit123@gmail.com>
2017-11-27 22:59:22 +01:00
..
qml mapwidget.qml: more minor improvements 2017-11-27 22:59:22 +01:00
qmlmapwidgethelper.cpp map-widget: use 'getter' function coordinate() for MapLocation 2017-11-27 22:59:22 +01:00
qmlmapwidgethelper.h map-widget: allow real-time updates of edited markers 2017-11-09 12:40:25 -08:00