function addMarkers(){ mySelect = document.getElementById('selection'); Albany = [];Rock_Spring = [];Athens = [];Duluth = [];Dunwoody = [];Augusta = [];Decatur = [];Atlanta = [];Richmond_Hill = [];Mcintyre = [];Marietta = [];Columbus = [];Stone_Mountain = [];Douglasville = [];Gainesville = [];Calhoun = [];Jasper = [];Ellijay = [];Lagrange = [];Lakeland = [];Dalton = [];Lithonia = [];East_Point = [];Oglethorpe = [];Sharpsburg = [];Savannah = [];Pooler = [];Zebulon = [];Brunswick = [];Wildwood = [];Macon = [];mySelect.options[mySelect.options.length] = new Option("Albany schools",'all=Albany'); mySelect.options[mySelect.options.length] = new Option("Athens schools",'all=Athens'); mySelect.options[mySelect.options.length] = new Option("Atlanta schools",'all=Atlanta'); mySelect.options[mySelect.options.length] = new Option("Augusta schools",'all=Augusta'); mySelect.options[mySelect.options.length] = new Option("Brunswick schools",'all=Brunswick'); mySelect.options[mySelect.options.length] = new Option("Calhoun schools",'all=Calhoun'); mySelect.options[mySelect.options.length] = new Option("Columbus schools",'all=Columbus'); mySelect.options[mySelect.options.length] = new Option("Dalton schools",'all=Dalton'); mySelect.options[mySelect.options.length] = new Option("Decatur schools",'all=Decatur'); mySelect.options[mySelect.options.length] = new Option("Douglasville schools",'all=Douglasville'); mySelect.options[mySelect.options.length] = new Option("Duluth schools",'all=Duluth'); mySelect.options[mySelect.options.length] = new Option("Dunwoody schools",'all=Dunwoody'); mySelect.options[mySelect.options.length] = new Option("East Point schools",'all=East_Point'); mySelect.options[mySelect.options.length] = new Option("Ellijay schools",'all=Ellijay'); mySelect.options[mySelect.options.length] = new Option("Gainesville schools",'all=Gainesville'); mySelect.options[mySelect.options.length] = new Option("Jasper schools",'all=Jasper'); mySelect.options[mySelect.options.length] = new Option("Lagrange schools",'all=Lagrange'); mySelect.options[mySelect.options.length] = new Option("Lakeland schools",'all=Lakeland'); mySelect.options[mySelect.options.length] = new Option("Lithonia schools",'all=Lithonia'); mySelect.options[mySelect.options.length] = new Option("Macon schools",'all=Macon'); mySelect.options[mySelect.options.length] = new Option("Marietta schools",'all=Marietta'); mySelect.options[mySelect.options.length] = new Option("Mcintyre schools",'all=Mcintyre'); mySelect.options[mySelect.options.length] = new Option("Oglethorpe schools",'all=Oglethorpe'); mySelect.options[mySelect.options.length] = new Option("Pooler schools",'all=Pooler'); mySelect.options[mySelect.options.length] = new Option("Richmond Hill schools",'all=Richmond_Hill'); mySelect.options[mySelect.options.length] = new Option("Rock Spring schools",'all=Rock_Spring'); mySelect.options[mySelect.options.length] = new Option("Savannah schools",'all=Savannah'); mySelect.options[mySelect.options.length] = new Option("Sharpsburg schools",'all=Sharpsburg'); mySelect.options[mySelect.options.length] = new Option("Stone Mountain schools",'all=Stone_Mountain'); mySelect.options[mySelect.options.length] = new Option("Wildwood schools",'all=Wildwood'); mySelect.options[mySelect.options.length] = new Option("Zebulon schools",'all=Zebulon'); mySelect.options[mySelect.options.length] = new Option("---------------------------",''); Albany[Albany.length] = createMarker(new GPoint(-84.29550000,31.52210000),"
Albany Community Seventh Day
Po Box 70818
Albany, GA 31708
Co-ed school, 3-6
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Albany Community Seventh Day",'Albany=' + Albany.length); Albany[Albany.length] = createMarker(new GPoint(-84.29550000,31.52210000),"
Albany Community Sda Church
Po Box 70818
Albany, GA 31708
Co-ed school, 3-6
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Albany Community Sda Church",'Albany=' + Albany.length); Rock_Spring[Rock_Spring.length] = createMarker(new GPoint(-85.22280000,34.81000000),"
Alice M Daley Adventist School
No Corrections
Rock Spring, GA 30739
Co-ed school, 5-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Alice M Daley Adventist School",'Rock_Spring=' + Rock_Spring.length); Athens[Athens.length] = createMarker(new GPoint(-83.42830000,33.94430000),"
Athens Seventh Day Adventist E
429 Epps Bridge Rd
Athens, GA 30606
Co-ed school, 1-7
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Athens Seventh Day Adventist E",'Athens=' + Athens.length); Duluth[Duluth.length] = createMarker(new GPoint(-84.13186100,33.98839100),"
Atlanta Adventist Academy
2959 Duluth Highway 120
Duluth, GA 30096
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Atlanta Adventist Academy",'Duluth=' + Duluth.length); Dunwoody[Dunwoody.length] = createMarker(new GPoint(-84.32707300,33.93864900),"
Atlanta North School Of Seventh-day Adventists
5123 Chamblee Dunwoody Road
Dunwoody, GA 30338
Co-ed school, PK-9
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Atlanta North School Of Seventh-day Adventists",'Dunwoody=' + Dunwoody.length); Augusta[Augusta.length] = createMarker(new GPoint(-82.12343000,33.48797100),"
Augusta Sda School
4301 Wheeler Road
Augusta, GA 30907
Co-ed school, K-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Augusta Sda School",'Augusta=' + Augusta.length); Decatur[Decatur.length] = createMarker(new GPoint(-84.25128200,33.76424100),"
Becker Adventist School
3561 Covington Highway
Decatur, GA 30032
Co-ed school, PK-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Becker Adventist School",'Decatur=' + Decatur.length); Atlanta[Atlanta.length] = createMarker(new GPoint(-84.46993400,33.76647200),"
Berean Christian Jr Academy
401 Hamilton E Holmes Drive Nw
Atlanta, GA 30318
Co-ed school, PK-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Berean Christian Jr Academy",'Atlanta=' + Atlanta.length); Richmond_Hill[Richmond_Hill.length] = createMarker(new GPoint(-81.32268000,31.95980000),"
Calvary Christian Academy
8933 Spruce St
Richmond Hill, GA 31324
Co-ed school, Ungraded
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Calvary Christian Academy",'Richmond_Hill=' + Richmond_Hill.length); Mcintyre[Mcintyre.length] = createMarker(new GPoint(-83.19940000,32.87720000),"
Calvary Christian Academy
441 Highway South P O Box 66
Mcintyre, GA 31054
Co-ed school, KG-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Calvary Christian Academy",'Mcintyre=' + Mcintyre.length); Marietta[Marietta.length] = createMarker(new GPoint(-84.56467500,33.98425600),"
Carman Adventist School
1330 Cobb Parkway N
Marietta, GA 30062
Co-ed school, K-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Carman Adventist School",'Marietta=' + Marietta.length); Columbus[Columbus.length] = createMarker(new GPoint(-84.92437400,32.54009100),"
Columbus Seventh Day Adventist
7880 Schomburg Road
Columbus, GA 31909
Co-ed school, 1-7
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Columbus Seventh Day Adventist",'Columbus=' + Columbus.length); Stone_Mountain[Stone_Mountain.length] = createMarker(new GPoint(-84.18313300,33.73136100),"
Decatur Adventist Jr. Academy
2584 Young Road
Stone Mountain, GA 30088
Co-ed school, PK-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Decatur Adventist Jr. Academy",'Stone_Mountain=' + Stone_Mountain.length); Douglasville[Douglasville.length] = createMarker(new GPoint(-84.77699500,33.72865200),"
Douglasville Sda Elementary School
2836 Bright Star Road
Douglasville, GA 30134
Co-ed school, K-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Douglasville Sda Elementary School",'Douglasville=' + Douglasville.length); Duluth[Duluth.length] = createMarker(new GPoint(-84.13132100,33.98771300),"
Duluth Adventist Christian School
2959 Duluth Highway
Duluth, GA 30096
Co-ed school, PK-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Duluth Adventist Christian School",'Duluth=' + Duluth.length); Augusta[Augusta.length] = createMarker(new GPoint(-82.00738200,33.45392000),"
Ebenezer Christian Academy
1699 Olive Road
Augusta, GA 30904
Co-ed school, 3-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Ebenezer Christian Academy",'Augusta=' + Augusta.length); Augusta[Augusta.length] = createMarker(new GPoint(-82.00738200,33.45392000),"
Ebenezer Sda School
1699 Olive Road
Augusta, GA 30604
Co-ed school, 1-7
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Ebenezer Sda School",'Augusta=' + Augusta.length); Albany[Albany.length] = createMarker(new GPoint(-84.11404600,31.57624600),"
Emanuel Sda Jr Academy
1534 E Broad Avenue
Albany, GA 31705
Co-ed school, K-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Emanuel Sda Jr Academy",'Albany=' + Albany.length); Gainesville[Gainesville.length] = createMarker(new GPoint(-83.81550300,34.30635200),"
Gainesville Christian School
1215 Vine Street Ne
Gainesville, GA 30501
Co-ed school, K-7
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Gainesville Christian School",'Gainesville=' + Gainesville.length); Calhoun[Calhoun.length] = createMarker(new GPoint(-85.01960500,34.46329600),"
Georgia-cumberland Academy
397 Academy Drive Sw
Calhoun, GA 30701
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Georgia-cumberland Academy",'Calhoun=' + Calhoun.length); Atlanta[Atlanta.length] = createMarker(new GPoint(-84.42560000,33.75690000),"
Greater Atlanta Adventist Academy
401 Hamilton E Homes Drive Nw
Atlanta, GA 30318
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Greater Atlanta Adventist Academy",'Atlanta=' + Atlanta.length); Jasper[Jasper.length] = createMarker(new GPoint(-84.42309700,34.47951800),"
Jasper Sda School
600 Burnt Mountain Road
Jasper, GA 30143
Co-ed school, 3-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Jasper Sda School",'Jasper=' + Jasper.length); Calhoun[Calhoun.length] = createMarker(new GPoint(-85.02063700,34.46361100),"
John L Coble Elementary School
450 Academy Drive Sw
Calhoun, GA 30701
Co-ed school, 5-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("John L Coble Elementary School",'Calhoun=' + Calhoun.length); Ellijay[Ellijay.length] = createMarker(new GPoint(-84.53510000,34.68440000),"
Josephine Edwards Christian School
12472 Highway 515 N
Ellijay, GA 30536
Co-ed school, PK-10
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Josephine Edwards Christian School",'Ellijay=' + Ellijay.length); Lagrange[Lagrange.length] = createMarker(new GPoint(-84.98690000,33.03160000),"
Lagrange Seventh-day Adventist Church School
75 Patillo Road
Lagrange, GA 30241
Co-ed school, 3-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Lagrange Seventh-day Adventist Church School",'Lagrange=' + Lagrange.length); Lakeland[Lakeland.length] = createMarker(new GPoint(-83.08525500,31.04162100),"
Lakeland Adventist School
842 W Thigpen Avenue
Lakeland, GA 31635
Co-ed school, 1-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Lakeland Adventist School",'Lakeland=' + Lakeland.length); Dalton[Dalton.length] = createMarker(new GPoint(-84.99292700,34.76491500),"
Learning Tree Elementary School
300 S Tibbs Road
Dalton, GA 30720
Co-ed school, K-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Learning Tree Elementary School",'Dalton=' + Dalton.length); Lithonia[Lithonia.length] = createMarker(new GPoint(-84.13307100,33.67740600),"
Lithonia Adventist Academy
3533 Ragsdale Rd
Lithonia, GA 30038
Co-ed school, K-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Lithonia Adventist Academy",'Lithonia=' + Lithonia.length); East_Point[East_Point.length] = createMarker(new GPoint(-84.47740200,33.66441100),"
Mount Olive Early Learning Center
3366 Mt Olive Road
East Point, GA 30344
Co-ed school, PK-K
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Mount Olive Early Learning Center",'East_Point=' + East_Point.length); Oglethorpe[Oglethorpe.length] = createMarker(new GPoint(-84.08460000,32.28980000),"
Oglethorpe Sda School
Po Box 1088
Oglethorpe, GA 31068
Co-ed school, 5-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Oglethorpe Sda School",'Oglethorpe=' + Oglethorpe.length); Sharpsburg[Sharpsburg.length] = createMarker(new GPoint(-84.62648900,33.39932000),"
Peachtree City Sda School
4957 Highway 34 E
Sharpsburg, GA 30277
Co-ed school, K-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Peachtree City Sda School",'Sharpsburg=' + Sharpsburg.length); Savannah[Savannah.length] = createMarker(new GPoint(-81.11199100,32.04962900),"
Ramah Junior Academy
3400 Florence Street
Savannah, GA 31405
Co-ed school, PK-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Ramah Junior Academy",'Savannah=' + Savannah.length); Pooler[Pooler.length] = createMarker(new GPoint(-81.24359900,32.15382500),"
Savannah Adventist Christian School
50 Godly Way
Pooler, GA 31322
Co-ed school, PK-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Savannah Adventist Christian School",'Pooler=' + Pooler.length); Columbus[Columbus.length] = createMarker(new GPoint(-84.97066500,32.45949600),"
Shepherd Drive Sda School
1408 Shepherd Dr
Columbus, GA 31906
Co-ed school, PK-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Shepherd Drive Sda School",'Columbus=' + Columbus.length); Zebulon[Zebulon.length] = createMarker(new GPoint(-84.37097300,33.05879800),"
Son-shine Christian Academy
151 Sullivan Rd
Zebulon, GA 30295
Co-ed school, 1-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Son-shine Christian Academy",'Zebulon=' + Zebulon.length); Brunswick[Brunswick.length] = createMarker(new GPoint(-81.49350600,31.15846600),"
Temple Of Truth Christian Community School
1103 K Street
Brunswick, GA 31520
Co-ed school, PK-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Temple Of Truth Christian Community School",'Brunswick=' + Brunswick.length); Wildwood[Wildwood.length] = createMarker(new GPoint(-85.42755700,34.98229200),"
Wildwood Adventist Elementary School
Po Box 129
Wildwood, GA 30757
Co-ed school, 4-9
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Wildwood Adventist Elementary School",'Wildwood=' + Wildwood.length); Macon[Macon.length] = createMarker(new GPoint(-83.68621000,32.87863500),"
Wimbish Adventist School
640 Wimbish Road
Macon, GA 31210
Co-ed school, 3-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Wimbish Adventist School",'Macon=' + Macon.length); map.removeOverlays(Albany); map.removeOverlays(Athens); map.removeOverlays(Atlanta); map.removeOverlays(Augusta); map.removeOverlays(Brunswick); map.removeOverlays(Calhoun); map.removeOverlays(Columbus); map.removeOverlays(Dalton); map.removeOverlays(Decatur); map.removeOverlays(Douglasville); map.removeOverlays(Duluth); map.removeOverlays(Dunwoody); map.removeOverlays(East_Point); map.removeOverlays(Ellijay); map.removeOverlays(Gainesville); map.removeOverlays(Jasper); map.removeOverlays(Lagrange); map.removeOverlays(Lakeland); map.removeOverlays(Lithonia); map.removeOverlays(Macon); map.removeOverlays(Marietta); map.removeOverlays(Mcintyre); map.removeOverlays(Oglethorpe); map.removeOverlays(Pooler); map.removeOverlays(Richmond_Hill); map.removeOverlays(Rock_Spring); map.removeOverlays(Savannah); map.removeOverlays(Sharpsburg); map.removeOverlays(Stone_Mountain); map.removeOverlays(Wildwood); map.removeOverlays(Zebulon); setTimeout(function(){map.addOverlays(Albany)},1000); setTimeout(function(){map.addOverlays(Athens)},1000); setTimeout(function(){map.addOverlays(Atlanta)},1000); setTimeout(function(){map.addOverlays(Augusta)},1000); setTimeout(function(){map.addOverlays(Brunswick)},1000); setTimeout(function(){map.addOverlays(Calhoun)},1000); setTimeout(function(){map.addOverlays(Columbus)},1000); setTimeout(function(){map.addOverlays(Dalton)},1000); setTimeout(function(){map.addOverlays(Decatur)},1000); setTimeout(function(){map.addOverlays(Douglasville)},1000); setTimeout(function(){map.addOverlays(Duluth)},1000); setTimeout(function(){map.addOverlays(Dunwoody)},1000); setTimeout(function(){map.addOverlays(East_Point)},1000); setTimeout(function(){map.addOverlays(Ellijay)},1000); setTimeout(function(){map.addOverlays(Gainesville)},1000); setTimeout(function(){map.addOverlays(Jasper)},1000); setTimeout(function(){map.addOverlays(Lagrange)},1000); setTimeout(function(){map.addOverlays(Lakeland)},1000); setTimeout(function(){map.addOverlays(Lithonia)},1000); setTimeout(function(){map.addOverlays(Macon)},1000); setTimeout(function(){map.addOverlays(Marietta)},1000); setTimeout(function(){map.addOverlays(Mcintyre)},1000); setTimeout(function(){map.addOverlays(Oglethorpe)},1000); setTimeout(function(){map.addOverlays(Pooler)},1000); setTimeout(function(){map.addOverlays(Richmond_Hill)},1000); setTimeout(function(){map.addOverlays(Rock_Spring)},1000); setTimeout(function(){map.addOverlays(Savannah)},1000); setTimeout(function(){map.addOverlays(Sharpsburg)},1000); setTimeout(function(){map.addOverlays(Stone_Mountain)},1000); setTimeout(function(){map.addOverlays(Wildwood)},1000); setTimeout(function(){map.addOverlays(Zebulon)},1000); maxLng = -81.11199100; maxLat = 34.98229200; minLng = -85.42755700; minLat = 31.04162100; reCenterMap(); } // End addStateMarkers JavaScript Function // Takes an array of markers and centers/zooms map based on marker range function centerByArray(myArray, recenter, newMaxMin) { if (newMaxMin == true) reMaxMin(myArray); for (var i = 0; i < myArray.length; i++) { var markLng = myArray[i].getPoint().x; var markLat = myArray[i].getPoint().y; if (markLat > maxLat) maxLat = markLat; if (markLng > maxLng) maxLng = markLng; if (markLat < minLat) minLat = markLat; if (markLng < minLng) minLng = markLng; } if (recenter) reCenterMap(); } // Reinit max/mins function reMaxMin(myArray) { maxLng = myArray[0].getPoint().x; maxLat = myArray[0].getPoint().y; minLng = myArray[0].getPoint().x; minLat = myArray[0].getPoint().y; } // Recenter map based on global max/mins function reCenterMap() { var bounds = new GLatLngBounds(); bounds.extend(new GLatLng(minLat, minLng)); bounds.extend(new GLatLng(maxLat, maxLng)); var center_lat = (bounds.getNorthEast().lat() + bounds.getSouthWest().lat()) / 2.0; var center_lng = (bounds.getNorthEast().lng() + bounds.getSouthWest().lng()) / 2.0; var center = new GLatLng(center_lat, center_lng); var zoom = map.getBoundsZoomLevel(bounds); map.setCenter(center,zoom); //map.setCenter(center,11); /* var center = new GPoint( (maxLng + minLng)/2, (maxLat+minLat)/2 ); var delta = new GSize(maxLng - minLng, maxLat - minLat); var minZoom = map.spec.getLowestZoomLevel(center, delta, map.viewSize); if (minZoom < 4) minZoom = 4; // Lowest possible zoom is 4 map.centerAndZoom(center, minZoom); */ } // Fires when drop down list of schools changes function selectChange(selection) { var myVal = selection.options[selection.selectedIndex].value; map.closeInfoWindow(); // Add entire array based on variable type if (myVal.indexOf('all') != -1 && myVal != 'all') { var temp = myVal.split('='); var showArray = temp[1]; // If Array is > X amount of markers, then open in a new page if (eval(showArray).length > 20) // New window depends on whether or not we're on the search page if (location.href.indexOf('nearby_schools.php') == -1) window.open(location.href + '/map/' + showArray); else window.open('/search//////' + showArray); map.removeOverlays(Albany); map.removeOverlays(Athens); map.removeOverlays(Atlanta); map.removeOverlays(Augusta); map.removeOverlays(Brunswick); map.removeOverlays(Calhoun); map.removeOverlays(Columbus); map.removeOverlays(Dalton); map.removeOverlays(Decatur); map.removeOverlays(Douglasville); map.removeOverlays(Duluth); map.removeOverlays(Dunwoody); map.removeOverlays(East_Point); map.removeOverlays(Ellijay); map.removeOverlays(Gainesville); map.removeOverlays(Jasper); map.removeOverlays(Lagrange); map.removeOverlays(Lakeland); map.removeOverlays(Lithonia); map.removeOverlays(Macon); map.removeOverlays(Marietta); map.removeOverlays(Mcintyre); map.removeOverlays(Oglethorpe); map.removeOverlays(Pooler); map.removeOverlays(Richmond_Hill); map.removeOverlays(Rock_Spring); map.removeOverlays(Savannah); map.removeOverlays(Sharpsburg); map.removeOverlays(Stone_Mountain); map.removeOverlays(Wildwood); map.removeOverlays(Zebulon); map.addOverlays(eval(showArray)); centerByArray(eval(showArray), true, true); // Center and zoom on set of markers } // Add individual markers if (myVal.indexOf('all') == -1 && myVal != 'all' && myVal.length) { var temp = myVal.split('='); var myArray = temp[0]; var myIndex = parseInt(temp[1]) - 1; document.getElementById('map').width = "750"; map.removeOverlay(eval(myArray)[myIndex]); map.addOverlay(eval(myArray)[myIndex]); GEvent.trigger(eval(myArray)[myIndex],'click'); } // Show all markers if (myVal == 'all') { cntMarker = 0; reMaxMin(Albany);map.removeOverlays(Albany); map.removeOverlays(Athens); map.removeOverlays(Atlanta); map.removeOverlays(Augusta); map.removeOverlays(Brunswick); map.removeOverlays(Calhoun); map.removeOverlays(Columbus); map.removeOverlays(Dalton); map.removeOverlays(Decatur); map.removeOverlays(Douglasville); map.removeOverlays(Duluth); map.removeOverlays(Dunwoody); map.removeOverlays(East_Point); map.removeOverlays(Ellijay); map.removeOverlays(Gainesville); map.removeOverlays(Jasper); map.removeOverlays(Lagrange); map.removeOverlays(Lakeland); map.removeOverlays(Lithonia); map.removeOverlays(Macon); map.removeOverlays(Marietta); map.removeOverlays(Mcintyre); map.removeOverlays(Oglethorpe); map.removeOverlays(Pooler); map.removeOverlays(Richmond_Hill); map.removeOverlays(Rock_Spring); map.removeOverlays(Savannah); map.removeOverlays(Sharpsburg); map.removeOverlays(Stone_Mountain); map.removeOverlays(Wildwood); map.removeOverlays(Zebulon); map.addOverlays(Albany); centerByArray(Albany, false, false); cntMarker += Albany.length; map.addOverlays(Athens); centerByArray(Athens, false, false); cntMarker += Athens.length; map.addOverlays(Atlanta); centerByArray(Atlanta, false, false); cntMarker += Atlanta.length; map.addOverlays(Augusta); centerByArray(Augusta, false, false); cntMarker += Augusta.length; map.addOverlays(Brunswick); centerByArray(Brunswick, false, false); cntMarker += Brunswick.length; map.addOverlays(Calhoun); centerByArray(Calhoun, false, false); cntMarker += Calhoun.length; map.addOverlays(Columbus); centerByArray(Columbus, false, false); cntMarker += Columbus.length; map.addOverlays(Dalton); centerByArray(Dalton, false, false); cntMarker += Dalton.length; map.addOverlays(Decatur); centerByArray(Decatur, false, false); cntMarker += Decatur.length; map.addOverlays(Douglasville); centerByArray(Douglasville, false, false); cntMarker += Douglasville.length; map.addOverlays(Duluth); centerByArray(Duluth, false, false); cntMarker += Duluth.length; map.addOverlays(Dunwoody); centerByArray(Dunwoody, false, false); cntMarker += Dunwoody.length; map.addOverlays(East_Point); centerByArray(East_Point, false, false); cntMarker += East_Point.length; map.addOverlays(Ellijay); centerByArray(Ellijay, false, false); cntMarker += Ellijay.length; map.addOverlays(Gainesville); centerByArray(Gainesville, false, false); cntMarker += Gainesville.length; map.addOverlays(Jasper); centerByArray(Jasper, false, false); cntMarker += Jasper.length; map.addOverlays(Lagrange); centerByArray(Lagrange, false, false); cntMarker += Lagrange.length; map.addOverlays(Lakeland); centerByArray(Lakeland, false, false); cntMarker += Lakeland.length; map.addOverlays(Lithonia); centerByArray(Lithonia, false, false); cntMarker += Lithonia.length; map.addOverlays(Macon); centerByArray(Macon, false, false); cntMarker += Macon.length; map.addOverlays(Marietta); centerByArray(Marietta, false, false); cntMarker += Marietta.length; map.addOverlays(Mcintyre); centerByArray(Mcintyre, false, false); cntMarker += Mcintyre.length; map.addOverlays(Oglethorpe); centerByArray(Oglethorpe, false, false); cntMarker += Oglethorpe.length; map.addOverlays(Pooler); centerByArray(Pooler, false, false); cntMarker += Pooler.length; map.addOverlays(Richmond_Hill); centerByArray(Richmond_Hill, false, false); cntMarker += Richmond_Hill.length; map.addOverlays(Rock_Spring); centerByArray(Rock_Spring, false, false); cntMarker += Rock_Spring.length; map.addOverlays(Savannah); centerByArray(Savannah, false, false); cntMarker += Savannah.length; map.addOverlays(Sharpsburg); centerByArray(Sharpsburg, false, false); cntMarker += Sharpsburg.length; map.addOverlays(Stone_Mountain); centerByArray(Stone_Mountain, false, false); cntMarker += Stone_Mountain.length; map.addOverlays(Wildwood); centerByArray(Wildwood, false, false); cntMarker += Wildwood.length; map.addOverlays(Zebulon); centerByArray(Zebulon, false, false); cntMarker += Zebulon.length; centerByArray(Albany,true, false); if (cntMarker > 20) // New window depends on whether or not we're on the search page if (location.href.indexOf('schools-by-distance') == -1) window.open(location.href + '/map/all'); else window.open('/search///7728,7728,7549,7714,7539,7544,7674,7588,33928,7527,7675,33927,7538,33926,33926,7549,7671,7672,7987,7770,7620,7928,7790,7553,7664,7666,7544,33929,7674,7709,7766,7781,7784,7798,8050,7592,7587,7867,7927,7588,7528,7909,7886,7655,33928,7937,/all'); //window.open('/map.php?type=2&schools=7728,7728,7549,7714,7539,7544,7674,7588,33928,7527,7675,33927,7538,33926,33926,7549,7671,7672,7987,7770,7620,7928,7790,7553,7664,7666,7544,33929,7674,7709,7766,7781,7784,7798,8050,7592,7587,7867,7927,7588,7528,7909,7886,7655,33928,7937,&school_level=&radius=&zipcode=&school_type_search=&school_type_code='); } } function createMarker(point, label, icon) { var marker = new GMarker(point, icon); var html = label; GEvent.addListener(marker, "click", function() { marker.openInfoWindowHtml(html); }); return marker; }