]> err.no Git - libchamplain/commitdiff
Use (lat, lon) instead of (lon, lat)
authorPierre-Luc Beaudoin <pierre-luc@squidy.info>
Tue, 16 Sep 2008 15:08:14 +0000 (11:08 -0400)
committerPierre-Luc Beaudoin <pierre-luc@squidy.info>
Tue, 16 Sep 2008 15:08:14 +0000 (11:08 -0400)
champlain-gtk/launcher.c

index 212b52aba742fd2a8861a20b46a3ce01911975e5..ced334dc1e643e1e1a7d90168e5916439a65a850 100644 (file)
@@ -46,15 +46,15 @@ create_marker_layer ()
   ClutterColor orange = { 0xf3, 0x94, 0x07, 0xbb };
   ClutterColor white = { 0xff, 0xff, 0xff, 0xff };
   marker = champlain_marker_new_with_label("MontrĂ©al", "Airmole 14", NULL, NULL);
-  champlain_marker_set_position(CHAMPLAIN_MARKER(marker), -73.563788, 45.528178);
+  champlain_marker_set_position(CHAMPLAIN_MARKER(marker), 45.528178, -73.563788);
   clutter_container_add(CLUTTER_CONTAINER(layer), marker, NULL);
   
   marker = champlain_marker_new_with_label("New York", "Sans 25", &white, NULL);
-  champlain_marker_set_position(CHAMPLAIN_MARKER(marker), -73.98, 40.77);
+  champlain_marker_set_position(CHAMPLAIN_MARKER(marker), 40.77, -73.98);
   clutter_container_add(CLUTTER_CONTAINER(layer), marker, NULL);
   
   marker = champlain_marker_new_with_label("Saint-Tite-des-Caps", "Serif 12", NULL, &orange);
-  champlain_marker_set_position(CHAMPLAIN_MARKER(marker), -70.764141, 47.130885);
+  champlain_marker_set_position(CHAMPLAIN_MARKER(marker), 47.130885, -70.764141);
   clutter_container_add(CLUTTER_CONTAINER(layer), marker, NULL);
   
   clutter_actor_hide(layer);
@@ -205,7 +205,7 @@ main (int argc, char *argv[])
 
   /* make sure that everything, window and label, are visible */
   gtk_widget_show_all (window);
-  champlain_view_center_on(CHAMPLAIN_VIEW(view), -73.75, 45.466);
+  champlain_view_center_on(CHAMPLAIN_VIEW(view), 45.466, -73.75);
   /* start the main loop */
   gtk_main ();