static gint map_mode=0;
static gboolean map_data_needs_refresh=FALSE;
-static osm_location map_loc = {NULL, NULL, NULL, FALSE, FALSE, 0, 0, 0.0, 0.0, 0 };
+osm_location map_loc = {NULL, NULL, NULL, FALSE, FALSE, 0, 0, 0.0, 0.0, 0 };
static GTimer *map_timer;
osm_set_way_range(OSM_RANGE_WAY/4);
osm_progress_set_widget(_db, _progress_item);
-_map_location_known=osm_get_location_data(ilat, ilon, &map_loc);
-_map_location_dist=map_loc.street ? map_loc.street->dist : 900000.0;
+osm_get_location_data(ilat, ilon, &map_loc);
if (map_loc.valid)
map_set_place_information(map_loc.street, map_loc.primary, map_loc.secondary);
else
#include "utils.h"
#include "mapper-types.h"
+#include "osm.h"
/** MAX_ZOOM defines the largest map zoom level we will download.
* (MAX_ZOOM - 1) is the largest map zoom level that the user can zoom to.
guint _key_zoom_new;
guint _key_zoom_timeout_sid;
-gboolean _map_location_known;
-gdouble _map_location_dist;
+osm_location map_loc;
/** The widget that provides the visual display of the map. */
GtkWidget *_map_widget;