1
0
mirror of https://github.com/tumic0/GPXSee.git synced 2025-03-13 02:27:46 +01:00
GPXSee/src/ll.h

18 lines
395 B
C
Raw Normal View History

2015-10-05 01:43:48 +02:00
#ifndef LL_H
#define LL_H
#include <QPointF>
2015-11-23 02:37:08 +01:00
#define TILE_SIZE 256
2015-11-25 23:17:39 +01:00
#define ZOOM_MAX 18
#define ZOOM_MIN 3
2015-11-23 02:37:08 +01:00
QPointF ll2mercator(const QPointF &ll);
2015-10-05 01:43:48 +02:00
qreal llDistance(const QPointF &p1, const QPointF &p2);
2015-11-23 02:37:08 +01:00
QPoint mercator2tile(const QPointF &m, int zoom);
QPointF tile2mercator(const QPoint &tile, int zoom);
int scale2zoom(qreal scale);
2016-01-14 00:37:51 +01:00
qreal zoom2resolution(int zoom, qreal y);
2015-10-05 01:43:48 +02:00
#endif // LL_H