content = new View("tagsmap_googlemap.html"); // Generate a list of GPS coordinates. $tagsGPS = ORM::factory("tags_gps")->find_all(); $template->content->tags_gps = $tagsGPS; // Load in module preferences. $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; } }