00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023 #ifndef MAPCOMMON_H
00024 #define MAPCOMMON_H
00025
00026 #include <QtCore>
00027
00028 const int TILE_SIZE_X = 256;
00029 const int TILE_SIZE_Y = 256;
00030
00031 const int MIN_MAP_ZOOM_LEVEL = 0;
00032 const int MAX_MAP_ZOOM_LEVEL = 18;
00033 const int MIN_VIEW_ZOOM_LEVEL = 2;
00034 const int MIN_MAP_SCENE_NORMAL_LEVEL = MAX_MAP_ZOOM_LEVEL + 1;
00039 const int DEFAULT_START_ZOOM_LEVEL = 2;
00040
00045 const int FRIEND_LOCATION_ICON_Z_LEVEL = MIN_MAP_SCENE_NORMAL_LEVEL + MAX_MAP_ZOOM_LEVEL + 1;
00046
00047 const int GROUP_ITEM_FRIENDS_COUNT_X = 13;
00048 const int GROUP_ITEM_FRIENDS_COUNT_Y = 13;
00049 const int GROUP_ITEM_FRIENDS_COUNT_WIDTH = 17;
00050 const int GROUP_ITEM_FRIENDS_COUNT_HEIGHT = 17;
00051
00052 const int FRIEND_ITEM_PRESS_WIDTH = 30;
00053 const int FRIEND_ITEM_PRESS_HEIGHT = 30;
00054
00059 const int OWN_LOCATION_ICON_Z_LEVEL = FRIEND_LOCATION_ICON_Z_LEVEL + 1;
00060 const int MAP_OWN_LOCATION_ICON_SIZE = 24;
00061
00062 const int ZOOM_FPS = 30;
00063 const qreal ZOOM_TIME = 250;
00064
00065 const qreal MAX_LATITUDE = 85.05112877980659237802;
00066 const qreal MIN_LATITUDE = -MAX_LATITUDE;
00067 const qreal MIN_LONGITUDE = -180.0;
00068 const qreal MAX_LONGITUDE = 180.0;
00069
00070 const int DEFAULT_SCREEN_WIDTH = 973;
00071 const int DEFAULT_SCREEN_HEIGHT = 614;
00072 const int DEFAULT_ZOOM_LEVEL = 14;
00073 const qreal DEFAULT_LONGITUDE = 0.0000;
00074 const qreal DEFAULT_LATITUDE = 0.0000;
00075
00076 const qreal EARTH_RADIUS = 6371.01;
00077
00078 const int GRID_PADDING = 1;
00079
00080 const QString OSM_LICENSE = QString::fromUtf8("© OpenStreetMap contributors, CC-BY-SA");
00081
00082 const int AUTO_CENTERING_DISABLE_DISTANCE = 200;
00083
00084
00085 const QString MAP_LAST_ZOOMLEVEL = "Last_map_zoom_level";
00086 const QString MAP_LAST_POSITION = "Last_map_location";
00087
00091 const QString ERROR_VALUE_NOT_FOUND_ON_SETTINGS = "Value_not_found";
00092
00097 const int UNDEFINED = -1;
00098
00099 #endif // MAPCOMMON_H