Created MapEngine::setLocation unit tests and actual method.
[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 static const int GRID_WIDTH = 4;
15 static const int GRID_HEIGHT = 4;
16 /**
17 * \var UNDEFINED
18 * \brief Value to be used when zoom level, tile numbers or position are not defined
19 */
20 static const int UNDEFINED = -1;
21
22 #endif // COMMON_H