GtkWidget *hbox, *zoomer, *btn_left, *btn_right, *btn_up, *btn_down, *vbox;
GtkWidget *rotate;
RepoData *rd;
+gint t;
+gdouble slat, slon;
g_thread_init(NULL);
g_type_init();
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);
+slon=slat=0.001;
+for (t=1;t<256;t++) {
+ if (g_random_double()<0.1) {
+ slat=g_random_double_range(-0.0009, 0.0009);
+ slon=g_random_double_range(-0.0009, 0.0009);
+ }
+ path_add_latlon(track, 60.450 + slat, 22.241 + slon, t, 1, 1);
+ path_add_latlon(route, 60.555 + slat, 22.140 + slon, t, 1, 1);
+ if (g_random_double()<0.1)
+ path_add_waypoint(route, 60.555 + slat, 22.140 + slon, "WPT");
}
gtk_map_add_path(map, track, TRUE);