<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="content-type" content="text/html; charset=utf-8"/>
<title>Google Maps JavaScript API Example</title>
<script src="http://maps.google.com/maps?file=api&v=2&key=ABQIAAAAkUakDxU7CgrfviOIB6A_MRRi_j0U6kJrkFvY4-OX2XYmEAa76BRDaI6i7kD_Qz1T6TEccNKEdASY9w"
type="text/javascript"></script>
<script type="text/javascript">
function load() {
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map"));
directionsPanel = document.getElementById("directions");
var geocoder = new GClientGeocoder();
map.addControl(new GLargeMapControl());
map.addControl(new GMapTypeControl());
map.setCenter(new GLatLng(33.990732, -84.088649), 13);
// Icon for base
var baseIcon = new GIcon();
baseIcon.shadow = "http://www.google.com/mapfiles/shadow50.png";
baseIcon.iconSize = new GSize(20, 34);
baseIcon.shadowSize = new GSize(22, 20);
baseIcon.iconAnchor = new GPoint(6, 20);
baseIcon.infoWindowAnchor = new GPoint(7, 4);
// Creates a marker at the given point with the given number label
function createMarker(point,desc,icon,add) {
var myicon = new GIcon(baseIcon);
if (icon == null)
{
icon = "frc";
} else if (icon == "pr" || icon == "gd") {
myicon.iconSize = new GSize(40, 40);
} else if (icon == "food") {
myicon.iconSize = new GSize(20,20);
}
myicon.image = "http://127.0.0.1/Robotics/gmaps/icon_"+icon+".png";
var marker = new GMarker(point,myicon);
var more = "";
more += "<br /><a href=javascript:directions(\""+add+"\",\"6400 Sugarloaf Pkwy, Duluth, GA 30097\");>Directions to PR</a>";
//more += "<br />javascript:directions(\""+add+"\",\"6400 Sugarloaf Pkwy, Duluth, GA 30097\");";
GEvent.addListener(marker, "click", function()
{
marker.openInfoWindowHtml(desc+more);
map.panTo(point);
});
map.addOverlay(marker);
return marker;
}
// Converts a street address to lat/lng and adds a marker
function addAddress(address,desc,icon) {
geocoder.getLatLng(
address,
function(point) {
if (!point) {
//Oh shush up you're annoying....for some reason
//alert(address + " not found");
} else {
createMarker(point,desc,icon,address);
}
}
);
}
function directions(from,to)
{
directions = new GDirections(map, directionsPanel);
directions.load(from+" to "+to);
}
//directions("6400 Sugarloaf Pkwy, Duluth, GA 30097","1 Georgia Dome Dr NW, Atlanta, GA 30313");
//
// Misc
addAddress("6400 Sugarloaf Pkwy, Duluth, GA 30097","Peachtree Regional (aka Gwinnett Civic Center)","pr");
addAddress("1 Georgia Dome Dr NW, Atlanta, GA 30313","Nationals (aka Georgia Dome)","gd");
//
//
// FIRST Robotics Teams
//
addAddress("1555 Old Peachtree Rd NW, Suwanee, GA 30024","Peachtree Ridge High School (Team 1261)");
addAddress("Greenville,SC","Greenville, SC (Team 281)");
addAddress("511 Arabian Dr NE, Arab, AL 35016","Arab High School (Team 538)");
addAddress("11595 King Rd, Roswell, GA 30075","Roswell High School (Team 832)");
addAddress("7324 Highway 187, Anderson, SC 29625","Pendleton High School (Team 845)");
addAddress("375 Holt Rd NE, Marietta, GA 30068","Wheeler High School (Team 1002)");
addAddress("Snellville, GA","? (Team 1007)");
addAddress("1509 S Ponce De Leon Ne, Atlanta, GA 30307","Paideia School (Team 1040)");
addAddress("Marion, SC","Marion County Technical Education Center (Team 1051)");
addAddress("725 Linton Road Sandersville, GA 31082","Brentwood School Team (1057)");
addAddress("Aiken, SC","? (Team 1102)");
///addAddress("Birmingham Highway Milton, GA","Milton High School (Team 1127)");
addAddress("3688 Chamblee-Dunwoody Road Chamblee, GA 30341","Chamblee High School (Team 1139)");
addAddress("6511 W Sunrise Blvd, Plantation, FL","David Posnack Hebrew Day School (Team 1242)");
addAddress("900 79th Avenue North Myrtle Beach, SC","AAST (Team 1287)");
addAddress("4770 Lee Waters Rd, Marietta, GA 30066","Kell High School (Team 1311)");
addAddress("4801 N. 22nd St., Tampa, FL 33610","Middleton Magnet High School (Team 1369)");
addAddress("Atlanta, GA","Center for Engineering and Applied Technology (Team 1371)");
addAddress("5025 Georgia Belle CT, Norcross, GA 30093","Norcross High School (Team 1379)");
addAddress("361 Pisgah Church Road , Columbia, SC 29203","W.J. Keenan High School (Team 1398)");
addAddress("2890 North Fulton Drive Atlanta, GA 30305","Atlanta International School (Team 1414)");
addAddress("926 Green St, Warner Robins, GA 31093","Northside High School (Team 1415)");
addAddress("3450 Benjamin E. Mays Drive Atlanta, GA 30331","Benjamin E. Mays High School (Team 1439)");
addAddress("9800 Webb School LN, Knoxville, TN 37923","Webb School of Knoxville (Team 1466)");
addAddress("5608 West Friendly Avenue Greensboro, North Carolina 27410","The Early College at Guilford (Team 1533)");
addAddress("Clover, SC","Clover School District (Team 1539)");
addAddress("1220 Noel C Conaway Rd, Guyton, GA","South Effingham High School Team (1611)");
addAddress("4057 California St, Brooksville, FL","Nature Coast Technical High School Team (1612)");
addAddress("929 Charles Allen Dr NE, Atlanta, GA","Henry W. Grady High School (Team 1648)");
addAddress("10625 Parsons Rd, Duluth, GA","Northview High School Team (1683)");
addAddress("110 Racetrack Road, NW Fort Walton Beach, FL 32547","Choctawhatchee High School (Team 1734)");
addAddress("585 Peachtree Pkwy, Cumming, GA","Forsyth Alliance Robotics Team (Team 1746)");
addAddress("Florence, SC","? (Team 1758)");
addAddress("20 Level Creek Rd, Suwanee, GA","North Gwinnett High School (Team 1771)");
addAddress("801 Glenwood Ave. SE Atlanta, GA 30316","Southside Comprehensive High School (Team 1788)");
addAddress("3223 Howell Mill Road, NW Atlanta, Georgia 30327","Arthur Blank Foundation & School of Technology at Carver (Team 1795)");
addAddress("3099 Panther Trail SW, Atlanta, GA","D. M. Therrell High School (Team 1845)");
addAddress("375 Holt Road, Marietta, Georgia 30068","Wheeler CircuitRunners (Team 1848)");
///addAddress("2001 Indian Dr, Uninc Lumpkin County, GA","Lumpkin County High School (Team 1877)");
addAddress("Nashville, TN","? (Team 1890)");
addAddress("High Grove Ct Fort Walton Beach, FL 32547","Fort Walton Beach High School (Team 1999)");
addAddress("3737 Brock Road, Duluth, GA 30096","Duluth High School (Team 2007)");
addAddress("1617 West Poplar Street, Griffin, GA 30224","Spalding Co High School (Team 2038)");
addAddress("6000 College Pkwy, Pensacola, FL","Booker T Washington High School (Team 2098)");
addAddress("Carrollton, GA","The Advanced Academy of Georgia (Team 2117)");
///addAddress("4485 Hickory Rd, Uninc Cherokee County, GA","Sequoyah High School (Team 2119)");
///addAddress("1550 Owens Store Rd, Canton, GA","Creekview High School (Team 2119)");
///addAddress("High Oaks Path Pepperell, MA 01463","Pepperell High School (Team 2269)");
//
// Hotels (examples)
//
addAddress("6310 Sugarloaf Pkwy, Duluth, GA","Holiday Inn Gwinett Civic & Cultural Center","hotel");
addAddress("2040 Sugarloaf Circle, Duluth, GA","Hilton Garden Inn Sugarloaf","hotel");
addAddress("6010 Sugarloaf Parkway, Lawrenceville, GA","Hampton Inn I-85 Discover Mills","hotel");
addAddress("1775 N Brown Rd, Lawrenceville, GA","Homewood Suites Atlanat I-85 Lawrenceville","hotel");
addAddress("2370 Stephens Center Dr, Duluth, GA","La Quinta Inn","hotel");
addAddress("310 Gwinco Blvd, Suwanee, GA","Courtyard by Marriott","hotel");
addAddress("1775 Pleasant Hill Rd, Duluth, GA","Marriott Hotels Resorts Suites: Atlanta Marriott Gwinnett Place","hotel");
addAddress("105 Gwinco Blvd, Suwanee, GA","Fairfield Inn-Suwanee","hotel");
//
// Hardware (examples)
//
addAddress("1480 Satellite Blvd, Suwanee, GA 30024","Home Depot","hardware");
addAddress("2560 Satellite Blvd, Duluth, GA","Home Depot","hardware");
addAddress("1702 Duluth Hwy, Lawrenceville, GA","Jones Tool Co","hardware");
addAddress("675 Old Peachtree Rd NW, Suwanee, GA","Weyerhaeuser Co","hardware");
addAddress("2780 Buford Hwy, Duluth, GA","Parsons-Ace Hardware","hardware");
addAddress("3616 Buford Hwy, Duluth, GA","Howards True Value Hardware","hardware");
//addAddress("3755 Shackelford Parkway, Duluth, GA","Home Depot the: Duluth","hardware");
addAddress("875 Lawrenceville Suwanee Road Northwest, Lawrenceville, GA","Home Depot the: Lawrenceville","hardware");
//
// Food (examples)
//
addAddress("6320 Sugarloaf Pkwy, Duluth, GA","Loafing Leprechaun","food");
addAddress("2000 Satellite Blvd, Duluth, GA","Roadhouse Grill","food");
addAddress("2020 Satellite Blvd, Duluth, GA","Chick-Fil-A","food");
addAddress("2300 Satellite Blvd, Duluth, GA","Breakaway Grill","food");
addAddress("2030 Sugarloaf Cir, Duluth, GA","Carrabba's Italian Grill","food");
addAddress("6590 Sugarloaf Pkwy, Duluth, GA","Mama Fu's","food");
addAddress("6590 Sugarloaf Pkwy, Duluth, GA","Vinny New York Pizza & Grill","food");
addAddress("6555 Sugarloaf Pkwy, Duluth, GA","Frontera Mex Mex Grill","food");
addAddress("6575 Sugarloaf Pkwy, Duluth, GA","Chin Chin 7","food");
addAddress("6555 Sugarloaf Pkwy, Duluth, GA","Lenny Mac's Barbeque","food");
}
}
</script>
</head>
<body onload="load()" onunload="GUnload()">
<div id="map" style="width: 1000px; height: 600px"></div>
<div id="directions"></div>
</body>
</html>