subsurface/map-widget/qml
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
..
icons map-widget: move the widget and its resources to 'map-widget' 2017-11-05 14:48:56 -08:00
MapWidget.qml mapwidget.qml: more minor improvements 2017-11-27 22:59:22 +01:00
MapWidgetContextMenu.qml QML UI: QtQuick to 2.6 2017-11-19 12:20:43 -08:00
MapWidgetError.qml QML UI: QtQuick to 2.6 2017-11-19 12:20:43 -08:00