// Copyright 2005 MapBuilder.net // You can't use this script or parts of this script without written permission from MapBuilder.net or Andrew Bidochko. // This script is a part of free service provided by MapBuilder.net and the script can be used from MapBuilder.net server only. // Global Variables // set map variable var map = ""; //set up array of locations var aLocations = new Array; // Storage for sidebar list var listNodeContent = ""; // Create MabBuilder's "tiny" red marker icon var iconsm = new GIcon(); iconsm.image = "http://labs.google.com/ridefinder/images/mm_20_red.png"; iconsm.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png"; iconsm.iconSize = new GSize(12, 20); iconsm.shadowSize = new GSize(22, 25); iconsm.iconAnchor = new GPoint(6, 20); iconsm.infoWindowAnchor = new GPoint(5, 1); // Create MabBuilder's "big" marker icon var iconbig = new GIcon(); iconbig.image = "http://www.google.com/mapfiles/marker.png"; iconbig.shadow = "http://www.google.com/mapfiles/shadow50.png"; iconbig.iconSize = new GSize(20, 34); iconbig.shadowSize = new GSize(37, 34); iconbig.iconAnchor = new GPoint(6, 34); iconbig.infoWindowAnchor = new GPoint(5, 1); // Custom Icon var iconcustom = new GIcon(iconbig); iconcustom.shadow = ''; /* * Copyright (c) 2005 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. */ MapBuilder.prototype.GetGoogleMapsAPIVersion = function() { var v = 0; var scripts = document.getElementsByTagName("SCRIPT") for (var i=0; iPowered By MapBuilder.net v1.0, GMap v'+v+''; try { if (v > 2) { oMap.getContainer().appendChild(info); } else { oMap.div.parentNode.appendChild(info); } } catch (e) { // do nothing } } GMap.prototype.addMapBuilder=function(oMap){ oMap.initialize(this); } MapBuilder.prototype.registerMBEvent=function(oMap){ GEvent.addListener(oMap, "maptypechanged", function() { setCreatedColor(oMap); }); } GMap.prototype.addMapBuilder=function(oMap){ oMap.initialize(this); } //Set "Created By Mapbuilder" color based on map type function setCreatedColor(oMap) { // v1 return ; var info=oMap.ownerDocument.getElementById('CreatedByMapBuilder'); currmaptype = getCurrentMapTypeNumber(oMap); // Regular map if (currmaptype == 0) info.style.color='#000000'; else info.style.color='#FFFFFF'; } //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 7) ? 7 : ((currentZoom == 0) ? 0 : (currentZoom - 1)); map.centerAndZoom(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.centerAtLatLng(aLocations[num][3]); // Use markeropenInfoWindowHtml(html) aLocations[num][0].openInfoWindowHtml(aLocations[num][2]); // Move focus to the map // Depricated //window.scrollTo(10, 10); } // Creates a locations list and put it into side bar function createSideBar() { // write links into document. for (var i=0; i" + ""; // Define Marker iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_red.png"; InfoHTML = "
Avon Park
" + footerHtml + "
"; marker = createMarker(point, InfoHTML, iconbig); map.addOverlay(marker); aLocations[0] = new Array(marker, "Avon Park", InfoHTML, point); point = new GPoint(-80.067291, 26.525299); footerHtml = "
" + "
"; // Define Marker iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_red.png"; InfoHTML = "
Boynton Beach
" + footerHtml + "
"; marker = createMarker(point, InfoHTML, iconbig); map.addOverlay(marker); aLocations[1] = new Array(marker, "Boynton Beach", InfoHTML, point); point = new GPoint(-82.574074, 27.498018); footerHtml = "
" + "
"; // Define Marker iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_red.png"; InfoHTML = "
Bradenton
" + footerHtml + "
"; marker = createMarker(point, InfoHTML, iconbig); map.addOverlay(marker); aLocations[2] = new Array(marker, "Bradenton", InfoHTML, point); point = new GPoint(-81.022972, 29.21073); footerHtml = "
" + "
"; // Define Marker iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_red.png"; InfoHTML = "
Daytona Beach
" + footerHtml + "
"; marker = createMarker(point, InfoHTML, iconbig); map.addOverlay(marker); aLocations[3] = new Array(marker, "Daytona Beach", InfoHTML, point); point = new GPoint(-80.143448, 26.122189); footerHtml = "
" + "
"; // Define Marker iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_red.png"; InfoHTML = "
Ft. Lauderdale
" + footerHtml + "
"; marker = createMarker(point, InfoHTML, iconbig); map.addOverlay(marker); aLocations[4] = new Array(marker, "Ft. Lauderdale", InfoHTML, point); point = new GPoint(-81.872597, 26.640659); footerHtml = "
" + "
"; // Define Marker iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_red.png"; InfoHTML = "
Ft. Myers
" + footerHtml + "
"; marker = createMarker(point, InfoHTML, iconbig); map.addOverlay(marker); aLocations[5] = new Array(marker, "Ft. Myers", InfoHTML, point); point = new GPoint(-82.323822, 29.651138); footerHtml = "
" + "
"; // Define Marker iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_red.png"; InfoHTML = "
Gainesville
" + footerHtml + "
"; marker = createMarker(point, InfoHTML, iconbig); map.addOverlay(marker); aLocations[6] = new Array(marker, "Gainesville", InfoHTML, point); point = new GPoint(-80.753349, 32.21637); footerHtml = "
" + "
"; // Define Marker iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_red.png"; InfoHTML = "
Hilton Head Island
" + footerHtml + "
"; marker = createMarker(point, InfoHTML, iconbig); map.addOverlay(marker); aLocations[7] = new Array(marker, "Hilton Head Island", InfoHTML, point); point = new GPoint(-81.656197, 30.332239); footerHtml = "
" + "
"; // Define Marker iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_red.png"; InfoHTML = "
Jacksonville
" + footerHtml + "
"; marker = createMarker(point, InfoHTML, iconbig); map.addOverlay(marker); aLocations[8] = new Array(marker, "Jacksonville", InfoHTML, point); point = new GPoint(-80.60704, 28.083288); footerHtml = "
" + "
"; // Define Marker iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_red.png"; InfoHTML = "
Melbourne
" + footerHtml + "
"; marker = createMarker(point, InfoHTML, iconbig); map.addOverlay(marker); aLocations[9] = new Array(marker, "Melbourne", InfoHTML, point); point = new GPoint(-82.718239, 28.24407); footerHtml = "
" + "
"; // Define Marker iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_red.png"; InfoHTML = "
New Port Richey
" + footerHtml + "
"; marker = createMarker(point, InfoHTML, iconbig); map.addOverlay(marker); aLocations[10] = new Array(marker, "New Port Richey", InfoHTML, point); point = new GPoint(-80.162407, 25.93219); footerHtml = "
" + "
"; // Define Marker iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_red.png"; InfoHTML = "
North Miami Beach
" + footerHtml + "
"; marker = createMarker(point, InfoHTML, iconbig); map.addOverlay(marker); aLocations[11] = new Array(marker, "North Miami Beach", InfoHTML, point); point = new GPoint(-81.378983, 28.53854); footerHtml = "
" + "
"; // Define Marker iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_red.png"; InfoHTML = "
Orlando
" + footerHtml + "
"; marker = createMarker(point, InfoHTML, iconbig); map.addOverlay(marker); aLocations[12] = new Array(marker, "Orlando", InfoHTML, point); point = new GPoint(-82.091568, 26.975559); footerHtml = "
" + "
"; // Define Marker iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_red.png"; InfoHTML = "
Port Charlotte
" + footerHtml + "
"; marker = createMarker(point, InfoHTML, iconbig); map.addOverlay(marker); aLocations[13] = new Array(marker, "Port Charlotte", InfoHTML, point); point = new GPoint(-82.530907, 27.33647); footerHtml = "
" + "
"; // Define Marker iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_red.png"; InfoHTML = "
Sarasota
" + footerHtml + "
"; marker = createMarker(point, InfoHTML, iconbig); map.addOverlay(marker); aLocations[14] = new Array(marker, "Sarasota", InfoHTML, point); point = new GPoint(-82.679527, 27.770969); footerHtml = "
" + "
"; // Define Marker iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_red.png"; InfoHTML = "
St. Petersburg
" + footerHtml + "
"; marker = createMarker(point, InfoHTML, iconbig); map.addOverlay(marker); aLocations[15] = new Array(marker, "St. Petersburg", InfoHTML, point); point = new GPoint(-82.033989, 29.00873); footerHtml = "
" + "
"; // Define Marker iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_red.png"; InfoHTML = "
Summerfield
" + footerHtml + "
"; marker = createMarker(point, InfoHTML, iconbig); map.addOverlay(marker); aLocations[16] = new Array(marker, "Summerfield", InfoHTML, point); point = new GPoint(-82.350922, 27.716919); footerHtml = "
" + "
"; // Define Marker iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_red.png"; InfoHTML = "
Sun City Center
" + footerHtml + "
"; marker = createMarker(point, InfoHTML, iconbig); map.addOverlay(marker); aLocations[17] = new Array(marker, "Sun City Center", InfoHTML, point); point = new GPoint(-84.279671, 30.43808); footerHtml = "
" + "
"; // Define Marker iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_red.png"; InfoHTML = "
Tallahassee
" + footerHtml + "
"; marker = createMarker(point, InfoHTML, iconbig); map.addOverlay(marker); aLocations[18] = new Array(marker, "Tallahassee", InfoHTML, point); point = new GPoint(-82.458366, 27.946609); footerHtml = "
" + "
"; // Define Marker iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_red.png"; InfoHTML = "
Tampa
" + footerHtml + "
"; marker = createMarker(point, InfoHTML, iconbig); map.addOverlay(marker); aLocations[19] = new Array(marker, "Tampa", InfoHTML, point); point = new GPoint(-82.454071, 27.09981); footerHtml = "
" + "
"; // Define Marker iconbig.image = "http://www.mapbuilder.net/img/icons/marker_34_red.png"; InfoHTML = "
Venice
" + footerHtml + "
"; marker = createMarker(point, InfoHTML, iconbig); map.addOverlay(marker); aLocations[20] = new Array(marker, "Venice", InfoHTML, point); // And finnaly create sidebar createSideBar(); // Store sidebar listNodeContent = document.getElementById("LocationList").innerHTML; }