function testMap() { $MAP_OBJECT = new GoogleMapAPI(); $MAP_OBJECT->_minify_js = isset($_REQUEST["min"]) ? FALSE : TRUE; $MAP_OBJECT->setDSN(${$wpdb}->get_results("SELECT * from wp_NBDonation where {$table} like '%{$input}%' and Type in('{$org}','Both');")); $MAP_OBJECT->addMarkerByCoords(-104.988, 39.755, "Marker Title", "Marker Description"); $MAP_OBJECT->addMarkerByCoords(-118.243, 34.0522, "Marker2 Title", "Marker2 Description"); ?> <html> <head> <?php echo $MAP_OBJECT->getHeaderJS(); echo $MAP_OBJECT->getMapJS(); ?> </head> <body> <?php echo $MAP_OBJECT->printOnLoad(); echo $MAP_OBJECT->printMap(); echo $MAP_OBJECT->printSidebar(); ?> </body> </html> <?php }
<?php // Load Elgg engine include_once dirname(dirname(dirname(__FILE__))) . "/engine/start.php"; echo '<link href="views/default/css.php" rel="stylesheet" type="text/css" />'; //////////////////////////////////////////////////////////// //////////////////////////map////////////////////////////// /////////////////////////////////////////////////////////// require_once 'GoogleMapAPI-2.5/GoogleMapAPI.class.php'; $map = new GoogleMapAPI('map'); // setup database for geocode caching $map->setDSN('mysql://elgg@localhost:81/elgg'); // enter YOUR Google Map Key $map->setAPIKey('ABQIAAAAQNUInQTwgn5VDDyl8bOByxTn2aORatyZyU46qAvXBfOijvU79hSczO6cDTdYULHuwTIH54k9rc-_Ng'); // create some map markers //$map->addMarkerByAddress("Kozani","Stathis","<b>Stathis</b><a href=\"http://metamorphosis.med.duth.gr/pg/profile/stathis\">Stathis Konstantinidis</a>","" ); //$map->addMarkerByAddress("GR","Nikolas","<b>Nikolas</b>","" ); //$map->addMarkerByAddress("Mallorca","S","<b>S</b>","" ); //$map->addMarkerByAddress("Stuttgardt","Germany","<b>Germany</b>","" ); ///// Show repurposed objects for content_item (<-content item id) $selected_c_i = $_GET['content_item']; /* * show_history_on_map($selected_c_i, $map); -> Gia na deiksei ta repurposed antikeimena * Gia na treksei http://metamorphosis.med.duth.gr/mod/content_item/show_map_content_item.php?content_item=1220 * * show_all_repurposed_content_items_on_map($map); -> Gia na deiksei ola ta repurposed content items. * */ //////////// //show_history_on_map($selected_c_i, $map); //show_all_repurposed_content_items_on_map($map);
<?php // Load Elgg engine include_once dirname(dirname(dirname(__FILE__))) . "/engine/start.php"; echo '<link href="views/default/css.php" rel="stylesheet" type="text/css" />'; //////////////////////////////////////////////////////////// //////////////////////////map////////////////////////////// /////////////////////////////////////////////////////////// require_once 'GoogleMapAPI-2.5/GoogleMapAPI.class.php'; $map = new GoogleMapAPI('map'); // setup database for geocode caching $map->setDSN('mysql://elgg@localhost/'); // enter YOUR Google Map Key $map->setAPIKey('ABQIAAAAQNUInQTwgn5VDDyl8bOByxSM5HRgLZx_FTvWflhOcXW1FpA9rhSc6ancYc0NEjrJi8yIkmEMFXzv5Q'); // create some map markers //$map->addMarkerByAddress("Kozani","Stathis","<b>Stathis</b><a href=\"http://metamorphosis.med.duth.gr/pg/profile/stathis\">Stathis Konstantinidis</a>","" ); //$map->addMarkerByAddress("GR","Nikolas","<b>Nikolas</b>","" ); //$map->addMarkerByAddress("Mallorca","S","<b>S</b>","" ); //$map->addMarkerByAddress("Stuttgardt","Germany","<b>Germany</b>","" ); ///// Show repurposed objects for content_item (<-content item id) $selected_c_i = $_GET['content_item']; /* * show_history_on_map($selected_c_i, $map); -> Gia na deiksei ta repurposed antikeimena * Gia na treksei http://metamorphosis.med.duth.gr/mod/content_item/show_map_content_item.php?content_item=1220 * * show_all_repurposed_content_items_on_map($map); -> Gia na deiksei ola ta repurposed content items. * */ //////////// //show_history_on_map($selected_c_i, $map); show_all_repurposed_content_items_on_map($map);