Added testcases for convertLatLonToTile. Modified convertLatLonTile to
[situare] / src / common.h
1 #ifndef COMMON_H
2 #define COMMON_H
3
4 #include <QtCore>
5
6 static const int TILE_SIZE_X = 256; ///< Tile image size in x direction
7 static const int TILE_SIZE_Y = 256; ///< Tile image size in y direction
8 static const int MIN_ZOOM_LEVEL = 0; ///< Minimum zoom level
9 static const int MAX_ZOOM_LEVEL = 18; ///< Maximum zoom level
10 static const qreal MIN_LATITUDE = -85.0511; ///< Minimum latitude value
11 static const qreal MAX_LATITUDE = 85.0511;  ///< Maximum latitude value
12 static const qreal MIN_LONGITUDE = -180.0;  ///< Minimum longitude value
13 static const qreal MAX_LONGITUDE = 180.0;  ///< Maximum longitude value
14 /**
15 * \var UNDEFINED
16 * \brief Value to be used when zoom level, tile numbers or position are not defined
17 */
18 static const int UNDEFINED = -1;
19
20 #endif // COMMON_H