/* * 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" + GetDirectionForm(0); + ""; // Define Marker options = {opasity: 100, label:"Krista in Atlanta"}; InfoHTML = "
Krista in Atlanta
March 9, 2007 (7:00 p.m.)
Carter Center Cecil B. Day Chapel
453 Freedom Parkway NE
Atlanta, GA
404.865.7100 [A Capella Books]
" + footerHtml + "
"; iconsm.image = "http://www.mapbuilder.net/img/icons/marker_20_red.png"; marker = createMarker(point, InfoHTML, iconsm, options); map.addOverlay(marker); aLocations[0] = new Array(marker, "Krista in Atlanta", InfoHTML, point); point = new GLatLng(41.880937, -87.625327); footerHtml = "
" + GetDirectionForm(1); + "
"; // Define Marker options = {opasity: 100, label:"Krista in Chicago"}; InfoHTML = "
Krista in Chicago
March 12, 2007 (Noon)
University Club
76 East Monroe Street
Chicago, IL
312.696.2208
" + footerHtml + "
"; iconsm.image = "http://www.mapbuilder.net/img/icons/marker_20_green.png"; marker = createMarker(point, InfoHTML, iconsm, options); map.addOverlay(marker); aLocations[1] = new Array(marker, "Krista in Chicago", InfoHTML, point); point = new GLatLng(41.8299, -88.098612); footerHtml = "
" + GetDirectionForm(2); + "
"; // Define Marker options = {opasity: 100, label:"Krista in Chicago Metro"}; InfoHTML = "
Krista in Chicago Metro

March 12, 2007 (7:30 p.m.)
Borders Books and Music
101 Rice Lake Square

Wheaton, IL 60187

630.871.9595

" + footerHtml + "
"; iconsm.image = "http://www.mapbuilder.net/img/icons/marker_20_red.png"; marker = createMarker(point, InfoHTML, iconsm, options); map.addOverlay(marker); aLocations[2] = new Array(marker, "Krista in Chicago Metro", InfoHTML, point); point = new GLatLng(34.05217, -118.243469); footerHtml = "
" + GetDirectionForm(3); + "
"; // Define Marker options = {opasity: 100, label:"Krista in LA"}; InfoHTML = "
Krista in LA
The Los Angeles Times Book Festival
" + footerHtml + "
"; iconsm.image = "http://www.mapbuilder.net/img/icons/marker_20_red.png"; marker = createMarker(point, InfoHTML, iconsm, options); map.addOverlay(marker); aLocations[3] = new Array(marker, "Krista in LA", InfoHTML, point); point = new GLatLng(40.786181, -73.978577); footerHtml = "
" + GetDirectionForm(4); + "
"; // Define Marker options = {opasity: 100, label:"Krista in NY"}; InfoHTML = "
Krista in NY
March 7, 2007 (7 p.m.)
Barnes & Noble
Broadway + 82nd Street
New York, NY
212.362.8835
" + footerHtml + "
"; iconsm.image = "http://www.mapbuilder.net/img/icons/marker_20_red.png"; marker = createMarker(point, InfoHTML, iconsm, options); map.addOverlay(marker); aLocations[4] = new Array(marker, "Krista in NY", InfoHTML, point); point = new GLatLng(39.95926, -75.170462); footerHtml = "
" + GetDirectionForm(5); + "
"; // Define Marker options = {opasity: 100, label:"Krista in Philly"}; InfoHTML = "
Krista in Philly
March 6, 2007 (7 p.m.)
Free Library of Philadelphia
1901 Vine Street
Philadelphia, PA
215.567.4341
" + footerHtml + "
"; iconsm.image = "http://www.mapbuilder.net/img/icons/marker_20_red.png"; marker = createMarker(point, InfoHTML, iconsm, options); map.addOverlay(marker); aLocations[5] = new Array(marker, "Krista in Philly", InfoHTML, point); point = new GLatLng(38.639771, -90.355035); footerHtml = "
" + GetDirectionForm(6); + "
"; // Define Marker options = {opasity: 100, label:"Krista in St. Louis"}; InfoHTML = "
Krista in St. Louis
March 13, 2007 (7 p.m.)
Ethical Society of St. Louis
9001 Clayton Road
St. Louis, MO
314.367.6731 [Left Bank Books]
" + footerHtml + "
"; iconsm.image = "http://www.mapbuilder.net/img/icons/marker_20_red.png"; marker = createMarker(point, InfoHTML, iconsm, options); map.addOverlay(marker); aLocations[6] = new Array(marker, "Krista in St. Louis", InfoHTML, point); point = new GLatLng(38.891622, -77.085181); footerHtml = "
" + GetDirectionForm(7); + "
"; // Define Marker options = {opasity: 100, label:"Krista in the District"}; InfoHTML = "
Krista in the District
March 8, 2007 (7 p.m.)
Olsson\'s Books & Records
2111 Wilson Boulevard
Arlington, VA
703.525.4227
" + footerHtml + "
"; iconsm.image = "http://www.mapbuilder.net/img/icons/marker_20_red.png"; marker = createMarker(point, InfoHTML, iconsm, options); map.addOverlay(marker); aLocations[7] = new Array(marker, "Krista in the District", InfoHTML, point); point = new GLatLng(44.949073, -93.097355); footerHtml = "
" + GetDirectionForm(8); + "
"; // Define Marker options = {opasity: 100, label:"Krista in the Twin Cities"}; InfoHTML = "
Krista in the Twin Cities
April 5, 2007 (7 p.m.)
The Fitzgerald Theater
10 E Exchange Street
St. Paul, MN
651.290.1221
" + footerHtml + "
"; iconsm.image = "http://www.mapbuilder.net/img/icons/marker_20_red.png"; marker = createMarker(point, InfoHTML, iconsm, options); map.addOverlay(marker); aLocations[8] = new Array(marker, "Krista in the Twin Cities", InfoHTML, point); point = new GLatLng(45.003437, -93.166205); footerHtml = "
" + GetDirectionForm(9); + "
"; // Define Marker options = {opasity: 100, label:"Krista in the Twin Cities Metro"}; InfoHTML = "
Krista in the Twin Cities Metro
March 20, 2007 (7 p.m.)
Barnes & Noble
2100 North Snelling Avenue
Roseville, MN 55113
651.639.9256
" + footerHtml + "
"; iconsm.image = "http://www.mapbuilder.net/img/icons/marker_20_green.png"; marker = createMarker(point, InfoHTML, iconsm, options); map.addOverlay(marker); aLocations[9] = new Array(marker, "Krista in the Twin Cities Metro", InfoHTML, point); }