#define TESTREPO "/home/milang/MyDocs/.documents/Maps/OpenStreet"
GtkWidget *map;
+Path *track;
+Path *route;
static gboolean
map_zoom(GtkWidget *widget, gpointer data)
gtk_range_set_value(GTK_RANGE(zoomer), 8);
gtk_map_set_zoom(map, 8);
+gtk_map_set_path_display(map, TRACKS_MASK | ROUTES_MASK);
+
+track=path_new(PATH_TYPE_TRACK, 0);
+route=path_new(PATH_TYPE_ROUTE, 1);
+
+{
+gint t;
+
+for (t=1;t<256;t++)
+ path_add_latlon(track,
+ 60.4500+g_random_double_range(-0.0008, 0.0008),
+ 22.241+g_random_double_range(-0.0008, 0.0008), t, 1, 1);
+}
+
+gtk_map_add_path(map, track, TRUE);
+gtk_map_add_path(map, route, TRUE);
+
gdk_threads_enter();
gtk_main();
gdk_threads_leave();