diff --git a/modules/exif_gps/controllers/exif_gps.php b/modules/exif_gps/controllers/exif_gps.php
new file mode 100644
index 00000000..ad6a7290
--- /dev/null
+++ b/modules/exif_gps/controllers/exif_gps.php
@@ -0,0 +1,71 @@
+join("exif_coordinates", "items.id", "exif_coordinates.item_id")
+ ->where("items.parent_id", "=", $album_id)
+ ->order_by("exif_coordinates.latitude", "ASC")
+ ->find_all();
+
+ // Make a new page.
+ $template = new Theme_View("page.html", "other", "TagsMap");
+ $template->page_title = t("Gallery :: Map");
+ $template->content = new View("exif_gps_map.html");
+
+ // Load in module preferences.
+ $template->content->items = $items;
+ $template->content->google_map_key = module::get_var("exif_gps", "googlemap_api_key");
+
+ // Display the page.
+ print $template;
+
+/*
+print "
\n";
+ print count($items);
+print "
\n";
+print "
\n";
+foreach ($items as $item) {
+ print $item->name . "\t";
+ $item_coordinates = ORM::factory("exif_coordinate")->where("item_id", "=", $item->id)->find();
+ print $item_coordinates->latitude . "\t" . $item_coordinates->longitude;
+ print "
\n";
+}
+ $template = new Theme_View("page.html", "other", "TagsMap");
+ $template->page_title = t("Gallery :: Map");
+ $template->content = new View("tagsmap_googlemap.html");
+
+ // Load in module preferences.
+ $template->content->tags_gps = $tagsGPS;
+ $template->content->google_map_key = module::get_var("tagsmap", "googlemap_api_key");
+ $template->content->google_map_latitude = module::get_var("tagsmap", "googlemap_latitude");
+ $template->content->google_map_longitude = module::get_var("tagsmap", "googlemap_longitude");
+ $template->content->google_map_zoom = module::get_var("tagsmap", "googlemap_zoom");
+ $template->content->google_map_type = module::get_var("tagsmap", "googlemap_type");
+
+ print $template;
+ */
+ }
+}
diff --git a/modules/exif_gps/views/exif_gps_dynamic_sidebar.html.php b/modules/exif_gps/views/exif_gps_dynamic_sidebar.html.php
index 061e2ad4..57e1f903 100644
--- a/modules/exif_gps/views/exif_gps_dynamic_sidebar.html.php
+++ b/modules/exif_gps/views/exif_gps_dynamic_sidebar.html.php
@@ -12,7 +12,7 @@
var map = new google.maps.Map(document.getElementById("sidebar_map_canvas"), myOptions);
var marker = new google.maps.Marker({
position: latlng,
- map: map,
+ map: map
});
}
diff --git a/modules/exif_gps/views/exif_gps_map.html.php b/modules/exif_gps/views/exif_gps_map.html.php
new file mode 100644
index 00000000..d9738b71
--- /dev/null
+++ b/modules/exif_gps/views/exif_gps_map.html.php
@@ -0,0 +1,65 @@
+
+
+
+