_minify_js = isset($_REQUEST["min"])?FALSE:TRUE; $MAP_OBJECT->type_controls_style="DROPDOWN_MENU"; $MAP_OBJECT->width="80%"; $MAP_OBJECT->height="700px"; $MAP_OBJECT->map_type="ROADMAP"; $MAP_OBJECT->zoom="$zoom_level"; $MAP_OBJECT->disableSidebar(); $SIDEBAR_HTML = ""; // ************************* ARRAY OF DATA POINTS POI **************** $poi_category=''; //a simple array of data // Selects all the rows in the POI table. $result = mysql_query("SELECT * FROM poi Inner Join poi_category ON poi.POI_category_ID = poi_category.POI_category_ID WHERE $poi_location_type = '$location_name' ORDER BY poi_category.POI_category_order ASC, poi.Title ASC"); $data_array = array(); while ($row = @mysql_fetch_assoc($result)) { $data_array[] = $row; } //add markers to map and create sidebar html. foreach($data_array as $location){ $marker_count = $marker_count + 1; $Title_link = ''.$location["Title"].''; $Description_strip = strip_tags ($location["Description"]); // Removes markup $Description_shorten = substr($Description_strip,0,180); // Shortens description $DescriptionHTML = '

'.$Title_link.'
'.$Description_shorten.'...more

'; $map_icon= $marker_web_location.$location["POI_category_map_icon"]; //append
  • category to sidebar html if new category if($location["POI_category"] != $poi_category) { $poi_category = $location["POI_category"]; $SIDEBAR_HTML .= "
  • $poi_category
  • "; } //add the marker to the map. $marker_id = $MAP_OBJECT->addMarkerByCoords( $location["Longitude"], $location["Latitude"], $location["Title"], $DescriptionHTML, $tooltip="", $map_icon ); //create an id to be used for the marker opener $opener_id = "opener_".$marker_id; //append
  • item to sidebar html $SIDEBAR_HTML .= "
  • ".$location["Title"]."
  • "; //add marker opener id to map object $MAP_OBJECT->addMarkerOpener($marker_id, $opener_id); } // ************************* FILE HEADER ******************************* echo (" $location_name_upper MAP - Go Japan Go "); echo $MAP_OBJECT->getHeaderJS(); echo $MAP_OBJECT->getMapJS(); // *** echo (""); // ************************* BODY ******************************* echo ("
    "); // ****************** PAGE HEADER CONTENT ********************* echo (""); // ****************** MAIN CONTENT ********************* echo ("

    Tokyo Map in English shows over 500 Tokyo tourist attractions including observation decks, shops, temples, shrines, gardens, parks and major train stations. Tokyo Map provides information on these tourist attractions, with detailed articles and pictures for most.

    The Go Japan Go $location_name Map includes the major tourist areas of Shibuya, Shinjuku, Harajuku, Akihabara, Ginza, Roppongi and Ueno. The Go Japan Go $location_name Map now expands to your full browser width, which means you can see much more of the $location_name Map on the screen at one time along with the points of interest in $location_name.

    Tips on Using $location_name Map

    Points of Interest (right hand side) are sorted by category and alphabetical order of title.
    There is a scroll bar within the Points of Interest box so you can look through the whole list.
    When you click on an item within the Points of Interest box, the corresponding item will open its information box on the map.
    You can zoom in or out of the $location_name map by using the zoom slider (+ to -) control on the map (top left hand side) or the wheel on the mouse.

    "); //********* RICH SNIPPET *************************************** //********* Schema Markup echo ("
    "); //********* DISPLAY MAP *************************************** echo $MAP_OBJECT->printOnLoad(); echo $MAP_OBJECT->printMap(); echo (""); //********* SOCIAL MEDIA *************************************** echo ("

    SHARE $location_name_upper MAP

    "); // ********* END MAIN CONTENT *************************************** // ****************** FOOTER ********************* echo ("
    "); ?>