36 |
#include <X11/Xatom.h> |
#include <X11/Xatom.h> |
37 |
#endif |
#endif |
38 |
|
|
39 |
// #define MAP_SOURCE OSM_GPS_MAP_SOURCE_OPENSTREETMAP |
/* default values */ |
40 |
#define MAP_SOURCE OSM_GPS_MAP_SOURCE_OPENCYCLEMAP |
#define MAP_SOURCE OSM_GPS_MAP_SOURCE_OPENCYCLEMAP |
|
// #define MAP_SOURCE OSM_GPS_MAP_SOURCE_GOOGLE_STREET |
|
41 |
#define GPS_DEFAULT_ZOOM 13 |
#define GPS_DEFAULT_ZOOM 13 |
42 |
|
|
43 |
#define PROXY_KEY "/system/http_proxy/" |
#define PROXY_KEY "/system/http_proxy/" |
424 |
float dist = gpx_pos_get_distance(pos, nearest->pos, FALSE); |
float dist = gpx_pos_get_distance(pos, nearest->pos, FALSE); |
425 |
if(dist2pixel(context, dist, nearest->pos.lat) < CLICK_FUZZ) { |
if(dist2pixel(context, dist, nearest->pos.lat) < CLICK_FUZZ) { |
426 |
|
|
427 |
osm_gps_map_draw_balloon(map, nearest->pos.lat, nearest->pos.lon, |
osm_gps_map_osd_draw_balloon(map, nearest->pos.lat, nearest->pos.lon, |
428 |
balloon_draw_cb, nearest); |
balloon_draw_cb, nearest); |
429 |
} |
} |
430 |
} |
} |
431 |
context->press_on = NULL; |
context->press_on = NULL; |