/* * Copyright (c) 2005-2006 Andriy Bidochko. * http://www.mapbuilder.net * * The script has been generated by MapBuilder.net service and released to the customer under * The GNU General Public License (GPL), which can be found at: http://www.opensource.org/licenses/gpl-license.php * * This program is free software; you can redistribute it and/or modify it under the terms of the * GNU General Public License as published by the Free Software Foundation; * either version 2 of the License, or any later version. * * This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the * implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License * for more details. */ //That function will return the element of the array returned by map.getMapTypes() that identifies the current map function getCurrentMapTypeNumber(oMap){ var type=-1; for(var ix=0;ix 2.64 * marker.setTooltip(oOptions.label); * marker.setOpacity((oOptions.opasity ? oOptions.opasity : 100)); */ } else { var marker = new GMarker(point, icon); } GEvent.addListener(marker, "click", function() { marker.openInfoWindowHtml(html); }); return marker; } // Zoom map to. Used from InfoWindow function ZoomMapTo(num) { // Get current zoom level var currentZoom = map.getZoom(); // Re-center map newzoom = (currentZoom > 17) ? 17 : ((currentZoom == 0) ? 0 : (currentZoom + 1)); //V2-V1 compatability map.setCenter(aLocations[num][3], newzoom); } // Function is called when sidebar item is clicked or we are dealing with group boxes. function myInfoWindowHtml(num) { // Map rendering with open info window is very slow. Lets center map first. map.setCenter(aLocations[num][3]); // Use markeropenInfoWindowHtml(html) aLocations[num][0].openInfoWindowHtml(aLocations[num][2]); } /* Side Bar */ // Creates a locations list and put it into side bar function createSideBar() { var oUL = document.createElement("ul"); // write links into document. for (var i=0; i[+] Directions: To here - From here
Start address
" } GetGoogleMapsAPIVersion = function() { var v = 0; var scripts = document.getElementsByTagName("SCRIPT") for (var i=0; i" + ""; // Define Marker InfoHTML = "
Quinceo, Michoacan, MX
\"\" People in Quinceo estimate half of the town\'s 2500 people are living in the U.S. - predominantly in the Seattle area.
" + footerHtml + "
"; iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_orange.png"; marker = createMarker(point, InfoHTML, iconbig, options); map.addOverlay(marker); aLocations[0] = new Array(marker, "Quinceo, Michoacan, MX", InfoHTML, point); point = new GLatLng(47.556198, -122.28788); footerHtml = "
" + "
"; // Define Marker InfoHTML = "
South Seattle, WA
  About 70 Purepecha families live in the same apartment complex in South Seattle. It\'s the Purepecha community\'s hub in the Seattle area. Community organizers estimate about 2,000 Purepecha live in the Seattle suburbs. Most moved here in the last five years. In this photo, Purepecha women clean and sort fish at a plant on Seattle\'s Duwamish River.
" + footerHtml + "
"; iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_red.png"; marker = createMarker(point, InfoHTML, iconbig, options); map.addOverlay(marker); aLocations[1] = new Array(marker, "South Seattle, WA", InfoHTML, point); point = new GLatLng(47.255165, -122.441654); footerHtml = "
" + "
"; // Define Marker InfoHTML = "
Tacoma, WA
Many Purepecha people from the Mexican town of Tzintzuntzan, Michoacan have relocated to Tacoma. A priest in one neighborhood church says he assumes most new members are Purepecha.
" + footerHtml + "
"; iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_green.png"; marker = createMarker(point, InfoHTML, iconbig, options); map.addOverlay(marker); aLocations[2] = new Array(marker, "Tacoma, WA", InfoHTML, point); point = new GLatLng(19.616699, -101.583298); footerHtml = "
" + "
"; // Define Marker InfoHTML = "
Tzintzuntzan, Michoacan, MX
Tzintzutzan is considered the cradle of Purepecha culture. It was founded in the 13th century and and became the capital of the Purepecha State. Its name means \"Place of the Hummingbirds.\" 
" + footerHtml + "
"; iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_purple.png"; marker = createMarker(point, InfoHTML, iconbig, options); map.addOverlay(marker); aLocations[3] = new Array(marker, "Tzintzuntzan, Michoacan, MX", InfoHTML, point); // And finnaly create sidebar createSideBar(); }