Diff of /trunk/src/map-tool.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 93 by harbaum, Wed Sep 2 12:25:51 2009 UTC revision 112 by harbaum, Tue Sep 15 13:52:04 2009 UTC
# Line 36  Line 36 
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/"
# Line 425  on_map_button_release_event(GtkWidget *w Line 424  on_map_button_release_event(GtkWidget *w
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;

Legend:
Removed from v.93  
changed lines
  Added in v.112