/* * 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 options = {opasity: 100, label:"Comporium Data Services"}; InfoHTML = "
Comporium Data Services

" + 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, "Comporium Data Services", InfoHTML, point); point = new GLatLng(34.922428, -81.024139); footerHtml = "
" + "
"; // Define Marker options = {opasity: 100, label:"Comporium Group Headquarters"}; InfoHTML = "
Comporium Group Headquarters

" + footerHtml + "
"; iconsm.image = "http://www.mapbuilder.net/img/icons/marker_20_red.png"; marker = createMarker(point, InfoHTML, iconsm, options); map.addOverlay(marker); aLocations[1] = new Array(marker, "Comporium Group Headquarters", InfoHTML, point); point = new GLatLng(34.924385, -81.02496); footerHtml = "
" + "
"; // Define Marker options = {opasity: 100, label:"Comporium Long Distance"}; InfoHTML = "
Comporium Long Distance

" + 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, "Comporium Long Distance", InfoHTML, point); point = new GLatLng(34.928304574478354, -80.99601745605469); footerHtml = "
" + "
"; // Define Marker options = {opasity: 100, label:"Comporium Publishing"}; InfoHTML = "
Comporium Publishing

" + 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, "Comporium Publishing", InfoHTML, point); point = new GLatLng(35.046862452490686, -80.98949432373047); footerHtml = "
" + "
"; // Define Marker options = {opasity: 100, label:"Fort Mill - 160"}; InfoHTML = "
Fort Mill - 160

" + 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, "Fort Mill - 160", InfoHTML, point); point = new GLatLng(35.007063, -80.940131); footerHtml = "
" + "
"; // Define Marker options = {opasity: 100, label:"Fort Mill - Tom Hall Street"}; InfoHTML = "
Fort Mill - Tom Hall Street

" + 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, "Fort Mill - Tom Hall Street", InfoHTML, point); point = new GLatLng(33.196499, -80.01269); footerHtml = "
" + "
"; // Define Marker options = {opasity: 100, label:"Home Telephone Company"}; InfoHTML = "
Home Telephone Company
Home Telephone Company
Moncks Corner, SC  29461
" + 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, "Home Telephone Company", InfoHTML, point); point = new GLatLng(35.001471, -80.859755); footerHtml = "
" + "
"; // Define Marker options = {opasity: 100, label:"Indian Land"}; InfoHTML = "
Indian Land

" + 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, "Indian Land", InfoHTML, point); point = new GLatLng(35.12124245888661, -81.08206272125244); footerHtml = "
" + "
"; // Define Marker options = {opasity: 100, label:"Lake Wylie - Hw 274"}; InfoHTML = "
Lake Wylie - Hw 274

" + 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, "Lake Wylie - Hw 274", InfoHTML, point); point = new GLatLng(34.692562, -80.786777); footerHtml = "
" + "
"; // Define Marker options = {opasity: 100, label:"Lancaster - Airport Crossroads"}; InfoHTML = "
Lancaster - Airport Crossroads

" + 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, "Lancaster - Airport Crossroads", InfoHTML, point); point = new GLatLng(34.7331, -80.80118); footerHtml = "
" + "
"; // Define Marker options = {opasity: 100, label:"Lancaster - University Place"}; InfoHTML = "
Lancaster - University Place

" + footerHtml + "
"; iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_red.png"; marker = createMarker(point, InfoHTML, iconbig, options); map.addOverlay(marker); aLocations[10] = new Array(marker, "Lancaster - University Place", InfoHTML, point); point = new GLatLng(34.728356, -80.773222); footerHtml = "
" + "
"; // Define Marker options = {opasity: 100, label:"Lancaster - White Street"}; InfoHTML = "
Lancaster - White Street

" + footerHtml + "
"; iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_red.png"; marker = createMarker(point, InfoHTML, iconbig, options); map.addOverlay(marker); aLocations[11] = new Array(marker, "Lancaster - White Street", InfoHTML, point); point = new GLatLng(34.959176, -81.007534); footerHtml = "
" + "
"; // Define Marker options = {opasity: 100, label:"Rock Hill - Cherry Road"}; InfoHTML = "
Rock Hill - Cherry Road

" + footerHtml + "
"; iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_red.png"; marker = createMarker(point, InfoHTML, iconbig, options); map.addOverlay(marker); aLocations[12] = new Array(marker, "Rock Hill - Cherry Road", InfoHTML, point); point = new GLatLng(34.923824, -81.023854); footerHtml = "
" + "
"; // Define Marker options = {opasity: 100, label:"Rock Hill - East Main"}; InfoHTML = "
Rock Hill - East Main

" + footerHtml + "
"; iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_red.png"; marker = createMarker(point, InfoHTML, iconbig, options); map.addOverlay(marker); aLocations[13] = new Array(marker, "Rock Hill - East Main", InfoHTML, point); point = new GLatLng(34.93894733629002, -80.9682297706604); footerHtml = "
" + "
"; // Define Marker options = {opasity: 100, label:"Rock Hill - Manchester"}; InfoHTML = "
Rock Hill - Manchester

" + footerHtml + "
"; iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_red.png"; marker = createMarker(point, InfoHTML, iconbig, options); map.addOverlay(marker); aLocations[14] = new Array(marker, "Rock Hill - Manchester", InfoHTML, point); point = new GLatLng(34.985547, -81.215841); footerHtml = "
" + "
"; // Define Marker options = {opasity: 100, label:"York - E. Liberty Street"}; InfoHTML = "
York - E. Liberty Street

" + footerHtml + "
"; iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_red.png"; marker = createMarker(point, InfoHTML, iconbig, options); map.addOverlay(marker); aLocations[15] = new Array(marker, "York - E. Liberty Street", InfoHTML, point); // And finnaly create sidebar createSideBar(); }