function addMarkers() { mySelect = document.getElementById('selection'); Richmond = [];Richmond[Richmond.length] = createMarker(new GPoint(-77.54689789,37.49160004),"
A. M. Davis Elementary School
415 S Providence Rd
Richmond, VA 23236

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("A. M. Davis Elementary School",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.43783569,37.56278992),"
A. V. Norrell Elementary School
2120 Fendall Ave
Richmond, VA 23222

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("A. V. Norrell Elementary School",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.44088745,37.54935074),"
Adult Career Dev. Ctr.
119 W Leigh St
Richmond, VA 23220

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Adult Career Dev. Ctr.",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.48094177,37.56189346),"
Albert Hill Middle School
3400 Patterson Ave
Richmond, VA 23221

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Albert Hill Middle School",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.47062683,37.53902817),"
Amelia Street Sp Ed
1821 Amelia St
Richmond, VA 23220

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Amelia Street Sp Ed",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.40144348,37.54053116),"
Armstrong High School
1611 N 31st St
Richmond, VA 23223

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Armstrong High School",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.42136383,37.53160477),"
Bellevue Model Elementary School
2301 E Grace St
Richmond, VA 23223

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Bellevue Model Elementary School",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.43959808,37.39126968),"
Bellwood Elementary School
9536 Dawnshire Rd
Richmond, VA 23237

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Bellwood Elementary School",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.45048523,37.43587494),"
Bensley Elementary School
6600 Strathmore Rd
Richmond, VA 23237

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Bensley Elementary School",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.46928406,37.42495346),"
Beulah Elementary School
4216 Beulah Rd
Richmond, VA 23237

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Beulah Elementary School",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.46183777,37.54895020),"
Binford Middle School
1701 Floyd Ave
Richmond, VA 23220

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Binford Middle School",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.44503021,37.51600647),"
Blackwell Elementary School
1600 Everett St
Richmond, VA 23224

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Blackwell Elementary School",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.47782898,37.47723389),"
Broad Rock Elementary School
4615 Ferguson Ln
Richmond, VA 23234

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Broad Rock Elementary School",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.43023682,37.57124710),"
Chandler Middle School
201 E Brookland Pk Blvd
Richmond, VA 23222

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Chandler Middle School",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.41326141,37.52974319),"
Chimborazo Elementary School
3000 E Marshall St
Richmond, VA 23223

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Chimborazo Elementary School",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.45688629,37.54006577),"
Clark Springs Elementary School
1101 Dance St
Richmond, VA 23220

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Clark Springs Elementary School",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.50664900,37.51747000),"
Crestwood Elementary School
7600 Whittington Dr.
Richmond, VA 23225

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Crestwood Elementary School",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.47746277,37.48961639),"
E. S. H. Greene Elementary School
1745 Catalina Dr
Richmond, VA 23224

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("E. S. H. Greene Elementary School",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.43810272,37.55137634),"
Educare
100 W Baker St
Richmond, VA 23220

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Educare",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.50158691,37.51836777),"
Elizabeth D. Redd Elementary School
5601 Jahnke Rd
Richmond, VA 23225

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Elizabeth D. Redd Elementary School",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.50868225,37.48078918),"
Elkhardt Middle School
6300 Hull Street Rd
Richmond, VA 23224

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Elkhardt Middle School",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.40214539,37.54979706),"
Fairfield Court Elementary School
2510 Phaup St
Richmond, VA 23223

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Fairfield Court Elementary School",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.46888733,37.45727158),"
Falling Creek Elementary School
4800 Hopkins Rd.
Richmond, VA 23234

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Falling Creek Elementary School",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.46871185,37.45899582),"
Falling Creek Middle School
4724 Hopkins Rd.
Richmond, VA 23234

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Falling Creek Middle School",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.40144348,37.54053116),"
Franklin Military High School
1611 N 31st St
Richmond, VA 23223

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Franklin Military High School",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.53926849,37.53449249),"
Fred D. Thompson Middle School
7824 Forest Hill Ave
Richmond, VA 23225

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Fred D. Thompson Middle School",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.50953674,37.48884201),"
G. H. Reid Elementary School
1301 Whitehead Rd
Richmond, VA 23225

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("G. H. Reid Elementary School",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.41082001,37.53525925),"
George Mason Elementary School
813 N 28th St
Richmond, VA 23223

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("George Mason Elementary School",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.44875336,37.55436707),"
George W. Carver Elementary School
1110 W Leigh St
Richmond, VA 23220

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("George W. Carver Elementary School",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.48473358,37.51076126),"
George Wythe High School
4314 Crutchfield St
Richmond, VA 23225

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("George Wythe High School",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.44745636,37.58705902),"
Ginter Park Elementary School
3817 Chamberlayne Ave
Richmond, VA 23227

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Ginter Park Elementary School",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.59129333,37.51987457),"
Greenfield Elementary School
10751 Savoy Rd.
Richmond, VA 23235

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Greenfield Elementary School",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.44772339,37.59526062),"
Henderson Middle School
4319 Old Brook Rd
Richmond, VA 23227

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Henderson Middle School",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.47338867,37.43692780),"
Hopkins Road Elementary School
6000 Hopkins Rd.
Richmond, VA 23234

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Hopkins Road Elementary School",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.54262543,37.53247833),"
Huguenot High School
7945 Forest Hill Ave
Richmond, VA 23225

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Huguenot High School",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.58357239,37.54632568),"
J. B. Fisher Elementary School
3701 Garden Rd
Richmond, VA 23235

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("J. B. Fisher Elementary School",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.43592072,37.57334900),"
J. E. B. Stuart Elementary School
3101 Fendall Ave
Richmond, VA 23222

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("J. E. B. Stuart Elementary School",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.48904419,37.44631958),"
J. G. Hening Elementary School
5230 Chicora Dr.
Richmond, VA 23234

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("J. G. Hening Elementary School",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.48840332,37.47613525),"
J. L. Francis Elementary School
5146 Snead Rd
Richmond, VA 23224

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("J. L. Francis Elementary School",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.48118591,37.54838181),"
John B. Cary Elementary School
3021 Maplewood Ave
Richmond, VA 23221

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("John B. Cary Elementary School",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.44725800,37.59336090),"
John Marshall High School
4225 Old Brook Rd
Richmond, VA 23227

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("John Marshall High School",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.40532684,37.58080673),"
Linwood Holton Elementary School
1600 W. Laburnum Ave
Richmond, VA 23227

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Linwood Holton Elementary School",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.51200867,37.52093887),"
Lucille M. Brown Middle School
6300 Jahnke Rd
Richmond, VA 23225

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Lucille M. Brown Middle School",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.45471200,37.55955100),"
Maggie L. Walker Gov School
1000 N. Lombardy St.
Richmond, VA 23220

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Maggie L. Walker Gov School",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.52919769,37.47025681),"
Manchester Middle School
7401 Hull Street Rd.
Richmond, VA 23235

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Manchester Middle School",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.49980927,37.56477356),"
Mary Munford Elementary School
211 Westmoreland Ave
Richmond, VA 23226

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Mary Munford Elementary School",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.46862793,37.53820038),"
Maymont Elementary School
1211 S. Allen Ave.
Richmond, VA 23220

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Maymont Elementary School",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.48297119,37.43680191),"
Meadowbrook High School
4901 Cogbill Rd.
Richmond, VA 23234

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Meadowbrook High School",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.41289800,37.53630400),"
Metro Richmond Alternative Ed
Co Richmond City Public Schls
Richmond, VA 23219

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Metro Richmond Alternative Ed",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.51161957,37.50557709),"
Miles Jones Elementary School
200 Beaufont Hill Drive
Richmond, VA 23225

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Miles Jones Elementary School",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.61213684,37.48196411),"
Monacan High School
11501 Smoketree Dr.
Richmond, VA 23236

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Monacan High School",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.41941071,37.54179382),"
Mosby Middle School
1000 Mosby St
Richmond, VA 23223

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Mosby Middle School",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.44313049,37.50537109),"
Oak Grove/bellemeade Elementary School
2200 Ingram St
Richmond, VA 23224

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Oak Grove/bellemeade Elementary School",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.40435028,37.52852631),"
Onslow Minnis Middle School
701 North 37th Street
Richmond, VA 23223

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Onslow Minnis Middle School",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.45066833,37.53766251),"
Open High School
600 S Pine St
Richmond, VA 23220

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Open High School",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.42396545,37.56405258),"
Overby-sheppard Elementary School
2300 1st Ave
Richmond, VA 23222

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Overby-sheppard Elementary School",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.46944427,37.51602554),"
Patrick Henry Elementary School
3411 Semmes Ave
Richmond, VA 23225

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Patrick Henry Elementary School",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.43566895,37.40586472),"
Perrymont Middle School
8610 Perrymont Road
Richmond, VA 23237

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Perrymont Middle School",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.40001678,37.54554749),"
Pre-school Dev. Center
2124 N. 29th St.
Richmond, VA 23223

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Pre-school Dev. Center",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.60169983,37.45926666),"
Providence Elementary School
11001 W. Providence Rd.
Richmond, VA 23236

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Providence Elementary School",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.54207611,37.48840332),"
Providence Middle School
900 Starlight Lane
Richmond, VA 23235

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Providence Middle School",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.44972229,37.60041046),"
Real School
4929 Chamberlayne Ave
Richmond, VA 23227

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Real School",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.41156006,37.57770157),"
Real Special Ed Center
4929 Chamberlayne Ave.
Richmond, VA 23227

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Real Special Ed Center",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.58553314,37.48763657),"
Reams Road Elementary School
10141 Reams Rd.
Richmond, VA 23236

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Reams Road Elementary School",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.43810272,37.55137634),"
Richmond Acceleration Prgm
100 W. Baker St.
Richmond, VA 23220

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Richmond Acceleration Prgm",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.43810272,37.55137634),"
Richmond Alternative School
100 W. Baker St.
Richmond, VA 23220

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Richmond Alternative School",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.51422119,37.57959747),"
Richmond Community High School
5800 Patterson Ave
Richmond, VA 23226

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Richmond Community High School",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.43392800,37.54077800),"
Richmond Hospital Ep.
Po Box 980484
Richmond, VA 23298

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Richmond Hospital Ep.",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.42395700,37.54991000),"
Richmond Juvenile Detention Home
1700 N. 17th St.
Richmond, VA 23219

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Richmond Juvenile Detention Home",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.46926117,37.57846832),"
Richmond Technical Center
2020 Westwood Ave
Richmond, VA 23230

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Richmond Technical Center",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.48344421,37.38470840),"
Salem Church Elementary School
9600 Salem Church Rd.
Richmond, VA 23237

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Salem Church Elementary School",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.48583984,37.38283920),"
Salem Church Middle School
9700 Salem Church Rd.
Richmond, VA 23237

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Salem Church Middle School",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.53495026,37.54359055),"
Southampton Elementary School
3333 Cheverly Rd
Richmond, VA 23225

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Southampton Elementary School",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.41156006,37.57770157),"
Specialized Programs - Headstart Elementary School
4003 Cogbill Rd.
Richmond, VA 23234

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Specialized Programs - Headstart Elementary School",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.44627380,37.47543716),"
Summer Hill/ruffin Road Elementary School
2717 Alexander St
Richmond, VA 23234

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Summer Hill/ruffin Road Elementary School",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.46646881,37.51153183),"
Swansboro Elementary School
3160 Midlothian Tnpk
Richmond, VA 23224

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Swansboro Elementary School",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.46245575,37.58497620),"
Thirteen Acres Special Ed Center
3801 Hermitage Rd.
Richmond, VA 23227

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Thirteen Acres Special Ed Center",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.46849060,37.47290802),"
Thomas C. Boushall Middle School
3400 Hopkins Rd
Richmond, VA 23234

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Thomas C. Boushall Middle School",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.48583984,37.57079315),"
Thomas Jefferson High School
4100 W Grace St
Richmond, VA 23230

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Thomas Jefferson High School",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.43392800,37.54077800),"
Virginia Treatment Ctr.
Po Box 980489
Richmond, VA 23298

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Virginia Treatment Ctr.",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.61624908,37.47880173),"
W. W. Gordon Elementary School
11701 Gordon School Rd.
Richmond, VA 23236

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("W. W. Gordon Elementary School",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.49283600,37.52125931),"
Westover Hills Elementary School
1211 Jahnke Rd
Richmond, VA 23225

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Westover Hills Elementary School",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.41851044,37.55400085),"
Whitcomb Court Elementary School
2100 Sussex St
Richmond, VA 23223

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Whitcomb Court Elementary School",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.46777344,37.55408859),"
William Fox Elementary School
2300 Hanover Ave
Richmond, VA 23220

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("William Fox Elementary School",'Richmond=' + Richmond.length); Richmond[Richmond.length] = createMarker(new GPoint(-77.40122986,37.54579163),"
Woodville Elementary School
2000 N 28th St
Richmond, VA 23223

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Woodville Elementary School",'Richmond=' + Richmond.length); maxLng = -77.40001678; maxLat = 37.60041046; minLng = -77.61624908; minLat = 37.38283920; 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,10); /* 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(Richmond); 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(Richmond);map.removeOverlays(Richmond); map.addOverlays(Richmond); centerByArray(Richmond, false, false); cntMarker += Richmond.length; centerByArray(Richmond,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////all'); } }