mirror of
https://github.com/tumic0/GPXSee.git
synced 2025-01-18 19:52:09 +01:00
Fixed broken map scale (ruler) on HiDPI maps
This commit is contained in:
parent
aa892f6c3f
commit
112dc59cf2
@ -295,7 +295,7 @@ int AQMMap::zoomFit(const QSize &size, const RectC &rect)
|
||||
qreal AQMMap::resolution(const QRectF &rect)
|
||||
{
|
||||
const Zoom &z = _zooms.at(_zoom);
|
||||
return OSM::resolution(rect.center(), z.zoom, z.tileSize);
|
||||
return OSM::resolution(rect.center(), z.zoom, tileSize());
|
||||
}
|
||||
|
||||
int AQMMap::zoomIn()
|
||||
|
@ -128,7 +128,7 @@ GEMFMap::GEMFMap(const QString &fileName, QObject *parent)
|
||||
|
||||
qreal GEMFMap::resolution(const QRectF &rect)
|
||||
{
|
||||
return OSM::resolution(rect.center(), _zooms.at(_zi).level, _tileSize);
|
||||
return OSM::resolution(rect.center(), _zooms.at(_zi).level, tileSize());
|
||||
}
|
||||
|
||||
int GEMFMap::zoomFit(const QSize &size, const RectC &rect)
|
||||
|
@ -285,7 +285,7 @@ int MBTilesMap::zoomFit(const QSize &size, const RectC &rect)
|
||||
|
||||
qreal MBTilesMap::resolution(const QRectF &rect)
|
||||
{
|
||||
return OSM::resolution(rect.center(), _zooms.at(_zi).z, _tileSize);
|
||||
return OSM::resolution(rect.center(), _zooms.at(_zi).z, tileSize());
|
||||
}
|
||||
|
||||
int MBTilesMap::zoomIn()
|
||||
|
@ -58,7 +58,7 @@ int OnlineMap::zoomFit(const QSize &size, const RectC &rect)
|
||||
|
||||
qreal OnlineMap::resolution(const QRectF &rect)
|
||||
{
|
||||
return OSM::resolution(rect.center(), _zoom, _tileSize);
|
||||
return OSM::resolution(rect.center(), _zoom, tileSize());
|
||||
}
|
||||
|
||||
int OnlineMap::zoomIn()
|
||||
|
@ -198,7 +198,7 @@ int OsmdroidMap::zoomFit(const QSize &size, const RectC &rect)
|
||||
|
||||
qreal OsmdroidMap::resolution(const QRectF &rect)
|
||||
{
|
||||
return OSM::resolution(rect.center(), _zoom, _tileSize);
|
||||
return OSM::resolution(rect.center(), _zoom, tileSize());
|
||||
}
|
||||
|
||||
int OsmdroidMap::zoomIn()
|
||||
|
@ -146,7 +146,7 @@ int SqliteMap::zoomFit(const QSize &size, const RectC &rect)
|
||||
|
||||
qreal SqliteMap::resolution(const QRectF &rect)
|
||||
{
|
||||
return OSM::resolution(rect.center(), _zoom, _tileSize);
|
||||
return OSM::resolution(rect.center(), _zoom, tileSize());
|
||||
}
|
||||
|
||||
int SqliteMap::zoomIn()
|
||||
|
Loading…
x
Reference in New Issue
Block a user