/* * 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:"Christ Church- Durham Parish, 1692"}; InfoHTML = "
Christ Church- Durham Parish, 1692
8685 Ironsides Rd
Nanjemoy, MD
301-743-7099
" + footerHtml + "
"; iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_red.png"; marker = createMarker(point, InfoHTML, iconbig, options); map.addOverlay(marker); aLocations[0] = new Array(marker, "Christ Church- Durham Parish, 1692", InfoHTML, point); point = new GLatLng(38.529464, -76.981274); footerHtml = "
" + GetDirectionForm(1); + "
"; // Define Marker options = {opasity: 100, label:"Christ Church- Port Tobacco Parish, 1692"}; InfoHTML = "
Christ Church- Port Tobacco Parish, 1692
110 E. Charles St. 
La Plata, MD
301-932-1051
" + 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, "Christ Church- Port Tobacco Parish, 1692", InfoHTML, point); point = new GLatLng(38.354585, -76.938648); footerHtml = "
" + GetDirectionForm(2); + "
"; // Define Marker options = {opasity: 100, label:"Christ Church- William & Mary Parish, 1692"}; InfoHTML = "
Christ Church- William & Mary Parish, 1692
13050 Rock Point Rd.
 Newburg, MD
301-259-4327
" + 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, "Christ Church- William & Mary Parish, 1692", InfoHTML, point); point = new GLatLng(38.555988, -77.002527); footerHtml = "
" + GetDirectionForm(3); + "
"; // Define Marker options = {opasity: 100, label:"Mount Carmel Monestary, 1790"}; InfoHTML = "
Mount Carmel Monestary, 1790
5678 Mt. Carmel Dr.
 La Plata, MD
301-934-1654
" + footerHtml + "
"; iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_red.png"; marker = createMarker(point, InfoHTML, iconbig, options); map.addOverlay(marker); aLocations[3] = new Array(marker, "Mount Carmel Monestary, 1790", InfoHTML, point); point = new GLatLng(38.456112, -77.208819); footerHtml = "
" + GetDirectionForm(4); + "
"; // Define Marker options = {opasity: 100, label:"Nanjemoy Baptist Church, 1791"}; InfoHTML = "
Nanjemoy Baptist Church, 1791
2975 Baptist Church Rd. 
Nanjemoy, MD
301-246-4926
" + footerHtml + "
"; iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_red.png"; marker = createMarker(point, InfoHTML, iconbig, options); map.addOverlay(marker); aLocations[4] = new Array(marker, "Nanjemoy Baptist Church, 1791", InfoHTML, point); point = new GLatLng(38.529535307614054, -76.7810869216919); footerHtml = "
" + GetDirectionForm(5); + "
"; // Define Marker options = {opasity: 100, label:"Patuxent Friends Cemetery, 1871"}; InfoHTML = "
Patuxent Friends Cemetery, 1871
Luke\'s Lane
Hughesville, MD
301-855-7048
" + footerHtml + "
"; iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_red.png"; marker = createMarker(point, InfoHTML, iconbig, options); map.addOverlay(marker); aLocations[5] = new Array(marker, "Patuxent Friends Cemetery, 1871", InfoHTML, point); point = new GLatLng(38.615702, -76.902461); footerHtml = "
" + GetDirectionForm(6); + "
"; // Define Marker options = {opasity: 100, label:"St. Peter's Church, 1700"}; InfoHTML = "
St. Peter's Church, 1700
3320 St.Peter\'s Dr. 
Waldorf, MD
301-843-8916
" + footerHtml + "
"; iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_red.png"; marker = createMarker(point, InfoHTML, iconbig, options); map.addOverlay(marker); aLocations[6] = new Array(marker, "St. Peter's Church, 1700", InfoHTML, point); point = new GLatLng(38.465108, -77.021073); footerHtml = "
" + GetDirectionForm(7); + "
"; // Define Marker options = {opasity: 100, label:"St.Ignatius Church and Thomas Manor House, 1641"}; InfoHTML = "
St.Ignatius Church and Thomas Manor House, 1641
8855 Chapel Point Rd., 
Port Tobacco, MD
301-934-8245
" + 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, "St.Ignatius Church and Thomas Manor House, 1641", InfoHTML, point); point = new GLatLng(38.577705, -77.032274); footerHtml = "
" + GetDirectionForm(8); + "
"; // Define Marker options = {opasity: 100, label:"St.Joseph's Church, 1763"}; InfoHTML = "
St.Joseph's Church, 1763
4590 St. Joseph\'s Way
Pomfret, MD
301-609-4670
" + footerHtml + "
"; iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_red.png"; marker = createMarker(point, InfoHTML, iconbig, options); map.addOverlay(marker); aLocations[8] = new Array(marker, "St.Joseph's Church, 1763", InfoHTML, point); point = new GLatLng(38.474823, -76.793362); footerHtml = "
" + GetDirectionForm(9); + "
"; // Define Marker options = {opasity: 100, label:"St.Mary's Church, 1674"}; InfoHTML = "
St.Mary's Church, 1674
11555 St. Mary\'s Church Rd.
 Charlotte Hall, MD
301-934-8825
" + footerHtml + "
"; iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_red.png"; marker = createMarker(point, InfoHTML, iconbig, options); map.addOverlay(marker); aLocations[9] = new Array(marker, "St.Mary's Church, 1674", InfoHTML, point); // And finnaly create sidebar createSideBar(); }