/* * 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:"1. Albury Court"}; InfoHTML = "
1. Albury Court
1030 Eaton St.
Key West FL  33040
Reservations: 877.299.9870
Phone: 305.294.9870
Email: Albury@HistoricKeyWestInns.com
" + 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, "1. Albury Court", InfoHTML, point); point = new GLatLng(24.552910229748313, -81.79652273654938); footerHtml = "
" + "
"; // Define Marker options = {opasity: 100, label:"2. Chelsea House"}; InfoHTML = "
2. Chelsea House
709 Truman Ave.
Key West, FL  33040
Reservations:  800.845.8859
Phone: 305.296.2211
Email:  Chelsea@HistoricKeyWestInns.com
" + 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, "2. Chelsea House", InfoHTML, point); point = new GLatLng(24.551098, -81.80104); footerHtml = "
" + "
"; // Define Marker options = {opasity: 100, label:"3. Lighthouse Court"}; InfoHTML = "
3. Lighthouse Court
902 Whitehead St.
Key West, FL  33040
Reservations: 877.294.9588
Phone: 305.294.9588
Email: Lighthouse@HistoricKeyWestInns.com
" + 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, "3. Lighthouse Court", InfoHTML, point); point = new GLatLng(24.553232266847616, -81.7959862947464); footerHtml = "
" + "
"; // Define Marker options = {opasity: 100, label:"4. Key Lime Inn"}; InfoHTML = "
4. Key Lime Inn
725 Truman Ave.
Key West, FL  33040
Reservations: 800.549.4430
Phone: 305.294.5229
Email: KeyLime@HistoricKeyWestInns.com
" + 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, "4. Key Lime Inn", InfoHTML, point); point = new GLatLng(24.553673, -81.799031); footerHtml = "
" + "
"; // Define Marker options = {opasity: 100, label:"5. Merlin Guesthouse"}; InfoHTML = "
5. Merlin Guesthouse
811 Simonton St.
Key West, FL  33040
Reservations: 800.642.4753
Phone: 305.296.3336
Email:  Merlin@HistoricKeyWestInns.com
" + 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, "5. Merlin Guesthouse", InfoHTML, point); point = new GLatLng(24.54532748093355, -81.81149482727051); footerHtml = "
" + "
"; // Define Marker options = {opasity: 100, label:"Fort Zachary Taylor State Park"}; InfoHTML = "
Fort Zachary Taylor State Park
Park entrance is at the western end of Southard Street. Civil War Fort, Nice Beach
" + 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, "Fort Zachary Taylor State Park", InfoHTML, point); point = new GLatLng(24.56250267724381, -81.80145263671875); footerHtml = "
" + "
"; // Define Marker options = {opasity: 100, label:"Key West Harbor"}; InfoHTML = "
Key West Harbor
At the foot of Margaret Street.
Ferry Dock, Marinas, Fishing Charters, Sunset Sails
, Restaurants, Bars, Shopping
" + footerHtml + "
"; iconsm.image = "http://www.mapbuilder.net/img/icons/marker_20_blue.png"; marker = createMarker(point, InfoHTML, iconsm, options); map.addOverlay(marker); aLocations[6] = new Array(marker, "Key West Harbor", InfoHTML, point); point = new GLatLng(24.550402215558048, -81.80033683776855); footerHtml = "
" + "
"; // Define Marker options = {opasity: 100, label:"Lighthouse"}; InfoHTML = "
Lighthouse
At the corner of Whitehead Street and Truman Avenue
" + footerHtml + "
"; iconsm.image = "http://www.mapbuilder.net/img/icons/marker_20_blue.png"; marker = createMarker(point, InfoHTML, iconsm, options); map.addOverlay(marker); aLocations[7] = new Array(marker, "Lighthouse", InfoHTML, point); point = new GLatLng(24.559021, -81.806821); footerHtml = "
" + "
"; // Define Marker options = {opasity: 100, label:"Mallory Square"}; InfoHTML = "
Mallory Square
Duval St and Front St
Key West, FL 33040
Location of the daily sunset celebration.
" + footerHtml + "
"; iconsm.image = "http://www.mapbuilder.net/img/icons/marker_20_blue.png"; marker = createMarker(point, InfoHTML, iconsm, options); map.addOverlay(marker); aLocations[8] = new Array(marker, "Mallory Square", InfoHTML, point); point = new GLatLng(24.546381481169302, -81.79750442504883); footerHtml = "
" + "
"; // Define Marker options = {opasity: 100, label:"Southernmost Point Marker"}; InfoHTML = "
Southernmost Point Marker
At the corner of Whitehead and South Streets.
" + footerHtml + "
"; iconsm.image = "http://www.mapbuilder.net/img/icons/marker_20_blue.png"; marker = createMarker(point, InfoHTML, iconsm, options); map.addOverlay(marker); aLocations[9] = new Array(marker, "Southernmost Point Marker", InfoHTML, point); // And finnaly create sidebar createSideBar(); }