mirror of
https://github.com/tumic0/GPXSee.git
synced 2024-11-30 22:51:16 +01:00
Unify zoom level calculation logic
This commit is contained in:
parent
9bf1447a7e
commit
4697ba4ef0
@ -26,10 +26,10 @@ public:
|
|||||||
QRectF bounds() const {return QRectF(QPointF(0, 0), _size);}
|
QRectF bounds() const {return QRectF(QPointF(0, 0), _size);}
|
||||||
qreal resolution(const QPointF &) const {return _resolution;}
|
qreal resolution(const QPointF &) const {return _resolution;}
|
||||||
|
|
||||||
qreal zoom() const {return 1.0;}
|
qreal zoom() const {return 0;}
|
||||||
qreal zoomFit(const QSize &, const QRectF &) {return 1.0;}
|
qreal zoomFit(const QSize &, const QRectF &) {return 0;}
|
||||||
qreal zoomIn() {return 1.0;}
|
qreal zoomIn() {return 0;}
|
||||||
qreal zoomOut() {return 1.0;}
|
qreal zoomOut() {return 0;}
|
||||||
|
|
||||||
QPointF ll2xy(const Coordinates &c)
|
QPointF ll2xy(const Coordinates &c)
|
||||||
{return _transform.map(_projection->ll2xy(c));}
|
{return _transform.map(_projection->ll2xy(c));}
|
||||||
|
Loading…
Reference in New Issue
Block a user