/* * 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 = "
A stop on Edgar's trip: Agua Prieta, Mexico.


" + footerHtml + "
"; iconsm.image = "http://www.mapbuilder.net/img/icons/marker_20_orange.png"; marker = createMarker(point, InfoHTML, iconsm, options); map.addOverlay(marker); aLocations[0] = new Array(marker, "A stop on Edgar's trip: Agua Prieta, Mexico.", InfoHTML, point); point = new GLatLng(39.290482, -76.61232); footerHtml = "
" + "
"; // Define Marker InfoHTML = "
Baltimore, MD

Roberto from the Bahamas
has lived in Baltimore, MD.
" + footerHtml + "
"; iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_orange.png"; marker = createMarker(point, InfoHTML, iconbig, options); map.addOverlay(marker); aLocations[1] = new Array(marker, "Baltimore, MD", InfoHTML, point); point = new GLatLng(47.57692, -122.312721); footerHtml = "
" + "
"; // Define Marker InfoHTML = "
Beacon Hill, Seattle, WA

Dino currently lives in
Beacon Hill, Seattle.
" + footerHtml + "
"; iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_red.png"; marker = createMarker(point, InfoHTML, iconbig, options); map.addOverlay(marker); aLocations[2] = new Array(marker, "Beacon Hill, Seattle, WA", InfoHTML, point); point = new GLatLng(40.857159, -73.857269); footerHtml = "
" + "
"; // Define Marker InfoHTML = "
Bronx, NY
\"Veralyn
Veralyn lives in the Bronx, NY.
" + footerHtml + "
"; iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_brown.png"; marker = createMarker(point, InfoHTML, iconbig, options); map.addOverlay(marker); aLocations[3] = new Array(marker, "Bronx, NY", InfoHTML, point); point = new GLatLng(13.7167, -88.9333); footerHtml = "
" + "
"; // Define Marker InfoHTML = "
Carlos is from Cojueteque, El Salvador
\"Carlos\"
Carlos is from
Cojueteque, El Salvador.
" + footerHtml + "
"; iconsm.image = "http://www.mapbuilder.net/img/icons/marker_20_green.png"; marker = createMarker(point, InfoHTML, iconsm, options); map.addOverlay(marker); aLocations[4] = new Array(marker, "Carlos is from Cojueteque, El Salvador", InfoHTML, point); point = new GLatLng(41.849838, -87.648193); footerHtml = "
" + "
"; // Define Marker InfoHTML = "
Chicago, IL near McGuane Park
\"Pui
Pui Chau lives on the south side
of Chicago, IL near McGuane Park.
" + footerHtml + "
"; iconsm.image = "http://www.mapbuilder.net/img/icons/marker_20_blue.png"; marker = createMarker(point, InfoHTML, iconsm, options); map.addOverlay(marker); aLocations[5] = new Array(marker, "Chicago, IL near McGuane Park", InfoHTML, point); point = new GLatLng(31.052933985705163, -106.5234375); footerHtml = "
" + "
"; // Define Marker InfoHTML = "
Ciudad Juarez, Chihuahua, Mexico

Another stop on Edgar\'s Journey: 
Ciudad Juarez in the State of Chihuahua.
" + footerHtml + "
"; iconsm.image = "http://www.mapbuilder.net/img/icons/marker_20_orange.png"; marker = createMarker(point, InfoHTML, iconsm, options); map.addOverlay(marker); aLocations[6] = new Array(marker, "Ciudad Juarez, Chihuahua, Mexico", InfoHTML, point); point = new GLatLng(34.05217, -118.243469); footerHtml = "
" + "
"; // Define Marker InfoHTML = "
Dinorah (Dino) has lived in L.A.
\"Dino\"
" + footerHtml + "
"; iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_red.png"; marker = createMarker(point, InfoHTML, iconbig, options); map.addOverlay(marker); aLocations[7] = new Array(marker, "Dinorah (Dino) has lived in L.A.", InfoHTML, point); point = new GLatLng(23.0500, -74.9000); footerHtml = "
" + "
"; // Define Marker InfoHTML = "
Dunmore, Long Island, Bahamas
\"Roberto\"
This where Roberto is from.
" + footerHtml + "
"; iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_orange.png"; marker = createMarker(point, InfoHTML, iconbig, options); map.addOverlay(marker); aLocations[8] = new Array(marker, "Dunmore, Long Island, Bahamas", InfoHTML, point); point = new GLatLng(34.053322, -118.24498); footerHtml = "
" + "
"; // Define Marker InfoHTML = "
Edgar stopped in L.A.

" + footerHtml + "
"; iconsm.image = "http://www.mapbuilder.net/img/icons/marker_20_orange.png"; marker = createMarker(point, InfoHTML, iconsm, options); map.addOverlay(marker); aLocations[9] = new Array(marker, "Edgar stopped in L.A.", InfoHTML, point); point = new GLatLng(8.5, -13.25); footerHtml = "
" + "
"; // Define Marker InfoHTML = "
Freetown, Sierra Leone
\"VeralynSierra Leone and nows lives
in the Bronx\" src=\"http://www.kuow.org/images/newspecials/migra/vera.jpg\">
Veralyn is from Freetown,
Sierra Leone and nows lives
in the Bronx.
" + footerHtml + "
"; iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_brown.png"; marker = createMarker(point, InfoHTML, iconbig, options); map.addOverlay(marker); aLocations[10] = new Array(marker, "Freetown, Sierra Leone", InfoHTML, point); point = new GLatLng(37.669, -84.6514); footerHtml = "
" + "
"; // Define Marker InfoHTML = "
Machlyn Blair lives in Jeremiah, Kentucky
\"Machlyn
Machlyn\'s folks

\"Machlyn\"
Machlyn
" + footerHtml + "
"; iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_green.png"; marker = createMarker(point, InfoHTML, iconbig, options); map.addOverlay(marker); aLocations[11] = new Array(marker, "Machlyn Blair lives in Jeremiah, Kentucky", InfoHTML, point); point = new GLatLng(14.5481, 120.9969); footerHtml = "
" + "
"; // Define Marker InfoHTML = "
Malaya is from Pasay City, Philippines.
\"Malaya
Malaya

" + footerHtml + "
"; iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_white.png"; marker = createMarker(point, InfoHTML, iconbig, options); map.addOverlay(marker); aLocations[12] = new Array(marker, "Malaya is from Pasay City, Philippines.", InfoHTML, point); point = new GLatLng(1, 32.0000); footerHtml = "
" + "
"; // Define Marker InfoHTML = "
Marjorie is from Uganda
\"Marjorie
Marjorie is from Uganda in East Africa.
" + footerHtml + "
"; iconsm.image = "http://www.mapbuilder.net/img/icons/marker_20_purple.png"; marker = createMarker(point, InfoHTML, iconsm, options); map.addOverlay(marker); aLocations[13] = new Array(marker, "Marjorie is from Uganda", InfoHTML, point); point = new GLatLng(38.8964, -77.0262); footerHtml = "
" + "
"; // Define Marker InfoHTML = "
Marjorie lives Washington, D.C.
\"Marjories
Marjorie lives in D.C.
" + footerHtml + "
"; iconsm.image = "http://www.mapbuilder.net/img/icons/marker_20_purple.png"; marker = createMarker(point, InfoHTML, iconsm, options); map.addOverlay(marker); aLocations[14] = new Array(marker, "Marjorie lives Washington, D.C.", InfoHTML, point); point = new GLatLng(25.661619, -100.312897); footerHtml = "
" + "
"; // Define Marker InfoHTML = "
Monterrey Nuevo Leon, Mexico
\"Dino\"
Dino is from Monterrey Nuevo
Leon, Mexico.
" + footerHtml + "
"; iconsm.image = "http://www.mapbuilder.net/img/icons/marker_20_red.png"; marker = createMarker(point, InfoHTML, iconsm, options); map.addOverlay(marker); aLocations[15] = new Array(marker, "Monterrey Nuevo Leon, Mexico", InfoHTML, point); point = new GLatLng(25.0833, -77.3500); footerHtml = "
" + "
"; // Define Marker InfoHTML = "
Nassau, The Bahamas.
\"Roberto\"
Roberto now lives
in Nassau, The Bahamas.
" + footerHtml + "
"; iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_orange.png"; marker = createMarker(point, InfoHTML, iconbig, options); map.addOverlay(marker); aLocations[16] = new Array(marker, "Nassau, The Bahamas.", InfoHTML, point); point = new GLatLng(40.71463, -74.005806); footerHtml = "
" + "
"; // Define Marker InfoHTML = "
New York, NY

Melissa, Yohaira, Carlos,
Mr. Martinez, Raul and
Paris all now live in New York, NY.
" + footerHtml + "
"; iconsm.image = "http://www.mapbuilder.net/img/icons/marker_20_black.png"; marker = createMarker(point, InfoHTML, iconsm, options); map.addOverlay(marker); aLocations[17] = new Array(marker, "New York, NY", InfoHTML, point); point = new GLatLng(31.203404950917395, -110.91796875); footerHtml = "
" + "
"; // Define Marker InfoHTML = "
Nogales, Mexico

" + footerHtml + "
"; iconsm.image = "http://www.mapbuilder.net/img/icons/marker_20_orange.png"; marker = createMarker(point, InfoHTML, iconsm, options); map.addOverlay(marker); aLocations[18] = new Array(marker, "Nogales, Mexico", InfoHTML, point); point = new GLatLng(37.803829, -122.269852); footerHtml = "
" + "
"; // Define Marker InfoHTML = "
Oakland, CA
\"Malaya
Malaya lived in Oakland, CA
when this story was made.
" + footerHtml + "
"; iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_white.png"; marker = createMarker(point, InfoHTML, iconbig, options); map.addOverlay(marker); aLocations[19] = new Array(marker, "Oakland, CA", InfoHTML, point); point = new GLatLng(25.48295117535531, -98.349609375); footerHtml = "
" + "
"; // Define Marker InfoHTML = "
Palomas, Chihuahua, Mexico

" + footerHtml + "
"; iconsm.image = "http://www.mapbuilder.net/img/icons/marker_20_orange.png"; marker = createMarker(point, InfoHTML, iconsm, options); map.addOverlay(marker); aLocations[20] = new Array(marker, "Palomas, Chihuahua, Mexico", InfoHTML, point); point = new GLatLng(4.65637, -74.11779); footerHtml = "
" + "
"; // Define Marker InfoHTML = "
Paula is from Bogota, Columbia.
\"Paula
Paula is from Bogota, Columbia.
" + footerHtml + "
"; iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_blue.png"; marker = createMarker(point, InfoHTML, iconbig, options); map.addOverlay(marker); aLocations[21] = new Array(marker, "Paula is from Bogota, Columbia.", InfoHTML, point); point = new GLatLng(22.411249, 114.153542); footerHtml = "
" + "
"; // Define Marker InfoHTML = "
Pui Chau is from Shang Shui, Hong Kong
\"Pui Pui Chau is from Shang Shui, Hong Kong
" + footerHtml + "
"; iconsm.image = "http://www.mapbuilder.net/img/icons/marker_20_blue.png"; marker = createMarker(point, InfoHTML, iconsm, options); map.addOverlay(marker); aLocations[22] = new Array(marker, "Pui Chau is from Shang Shui, Hong Kong", InfoHTML, point); point = new GLatLng(35.686661, -105.937157); footerHtml = "
" + "
"; // Define Marker InfoHTML = "
Santa Fe, NM
\"Karmen
Karmen is from Zacatecas in
Mexico and now lives in
New Mexico.
" + footerHtml + "
"; iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_purple.png"; marker = createMarker(point, InfoHTML, iconbig, options); map.addOverlay(marker); aLocations[23] = new Array(marker, "Santa Fe, NM", InfoHTML, point); point = new GLatLng(22.5147, -105.2711); footerHtml = "
" + "
"; // Define Marker InfoHTML = "
Sonorita, Mexico

" + footerHtml + "
"; iconsm.image = "http://www.mapbuilder.net/img/icons/marker_20_orange.png"; marker = createMarker(point, InfoHTML, iconsm, options); map.addOverlay(marker); aLocations[24] = new Array(marker, "Sonorita, Mexico", InfoHTML, point); point = new GLatLng(32.533482, -117.018211); footerHtml = "
" + "
"; // Define Marker InfoHTML = "
Tijuana, Mexico

" + footerHtml + "
"; iconsm.image = "http://www.mapbuilder.net/img/icons/marker_20_orange.png"; marker = createMarker(point, InfoHTML, iconsm, options); map.addOverlay(marker); aLocations[25] = new Array(marker, "Tijuana, Mexico", InfoHTML, point); point = new GLatLng(47.753708, -122.161896); footerHtml = "
" + "
"; // Define Marker InfoHTML = "
Woodinville, WA
\"Paula
Paula currently lives in
Woodinville, WA.
" + footerHtml + "
"; iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_blue.png"; marker = createMarker(point, InfoHTML, iconbig, options); map.addOverlay(marker); aLocations[26] = new Array(marker, "Woodinville, WA", InfoHTML, point); point = new GLatLng(22.887442, -102.693261); footerHtml = "
" + "
"; // Define Marker InfoHTML = "
Zacatecas, Mexico
\"Karmen
Karmen is from Zacatecas in
Mexico and now lives in
New Mexico.
" + footerHtml + "
"; iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_purple.png"; marker = createMarker(point, InfoHTML, iconbig, options); map.addOverlay(marker); aLocations[27] = new Array(marker, "Zacatecas, Mexico", InfoHTML, point); // And finnaly create sidebar createSideBar(); }