function addMarkers(){ mySelect = document.getElementById('selection'); zip20011 = [];zip20012 = [];zip20008 = [];zip20032 = [];zip20020 = [];zip20016 = [];zip20017 = [];zip20015 = [];zip20007 = [];zip20018 = [];zip20003 = [];zip20002 = [];zip20036 = [];zip20009 = [];zip20019 = [];zip20001 = [];zip20059 = [];zip20004 = [];zip20010 = [];zip20013 = [];mySelect.options[mySelect.options.length] = new Option("20001 schools",'all=zip20001'); mySelect.options[mySelect.options.length] = new Option("20002 schools",'all=zip20002'); mySelect.options[mySelect.options.length] = new Option("20003 schools",'all=zip20003'); mySelect.options[mySelect.options.length] = new Option("20004 schools",'all=zip20004'); mySelect.options[mySelect.options.length] = new Option("20007 schools",'all=zip20007'); mySelect.options[mySelect.options.length] = new Option("20008 schools",'all=zip20008'); mySelect.options[mySelect.options.length] = new Option("20009 schools",'all=zip20009'); mySelect.options[mySelect.options.length] = new Option("20010 schools",'all=zip20010'); mySelect.options[mySelect.options.length] = new Option("20011 schools",'all=zip20011'); mySelect.options[mySelect.options.length] = new Option("20012 schools",'all=zip20012'); mySelect.options[mySelect.options.length] = new Option("20013 schools",'all=zip20013'); mySelect.options[mySelect.options.length] = new Option("20015 schools",'all=zip20015'); mySelect.options[mySelect.options.length] = new Option("20016 schools",'all=zip20016'); mySelect.options[mySelect.options.length] = new Option("20017 schools",'all=zip20017'); mySelect.options[mySelect.options.length] = new Option("20018 schools",'all=zip20018'); mySelect.options[mySelect.options.length] = new Option("20019 schools",'all=zip20019'); mySelect.options[mySelect.options.length] = new Option("20020 schools",'all=zip20020'); mySelect.options[mySelect.options.length] = new Option("20032 schools",'all=zip20032'); mySelect.options[mySelect.options.length] = new Option("20036 schools",'all=zip20036'); mySelect.options[mySelect.options.length] = new Option("20059 schools",'all=zip20059'); zip20011[zip20011.length] = createMarker(new GPoint(-77.02814600,38.96171700),"
A-t Seban Mesut School
5924 Georgia Avenue Nw
Washington, DC 20011
Co-ed school, PK-5
[ View School Profile ]
",iconGr); zip20012[zip20012.length] = createMarker(new GPoint(-77.02668800,38.98220800),"
Academia De La Recta Porta Icds
7614 Georgia Avenue Nw
Washington, DC 20012
Co-ed school, K-11
[ View School Profile ]
",iconGr); zip20011[zip20011.length] = createMarker(new GPoint(-77.03478300,38.95203700),"
Academy For Ideal Education
1501 Gallatin Street Nw
Washington, DC 20011
Co-ed school, K-12
[ View School Profile ]
",iconGr); zip20008[zip20008.length] = createMarker(new GPoint(-77.05536100,38.92594000),"
Aidan Montessori School
2700 27th Street, Nw
Washington, DC 20008
Co-ed school, NS-6
[ View School Profile ]
",iconGr); zip20032[zip20032.length] = createMarker(new GPoint(-77.00518900,38.83798000),"
The Ambassador Baptist Church Christian School
Po Box 6943
Washington, DC 20032
Co-ed school, K-5
[ View School Profile ]
",iconGr); zip20020[zip20020.length] = createMarker(new GPoint(-76.98191700,38.86743700),"
Anacostia Bible Church Christian School
1610 T Street Se
Washington, DC 20020
Co-ed school, PK-8
[ View School Profile ]
",iconGr); zip20016[zip20016.length] = createMarker(new GPoint(-77.07535700,38.92986900),"
Annunciation School
3825 Klingle Place Nw
Washington, DC 20016
Co-ed school, PK-8
[ View School Profile ]
",iconGr); zip20017[zip20017.length] = createMarker(new GPoint(-77.00287800,38.93918700),"
Archbishop Carroll High School
4300 Harewood Road Ne
Washington, DC 20017
Co-ed school, 9-12
[ View School Profile ]
",iconGr); zip20032[zip20032.length] = createMarker(new GPoint(-77.00425600,38.84184200),"
Assumption Catholic School
220 Highview Place Se
Washington, DC 20032
Co-ed school, PK-8
[ View School Profile ]
",iconGr); zip20008[zip20008.length] = createMarker(new GPoint(-77.06997500,38.95316300),"
Auguste Montessori
3600 Ellicott Street Nw
Washington, DC 20008
Co-ed school, PK-K
[ View School Profile ]
",iconGr); zip20016[zip20016.length] = createMarker(new GPoint(-77.06879300,38.93148100),"
Beauvoir, The Nat'l Cathedral E
3500 Woodley Rd Nw
Washington, DC 20016
Co-ed school, PK-3
[ View School Profile ]
",iconGr); zip20015[zip20015.length] = createMarker(new GPoint(-77.07513700,38.96772800),"
Blessed Sacrament Elementary School
5841 Chevy Chase Parkway Nw
Washington, DC 20015
Co-ed school, K-8
[ View School Profile ]
",iconGr); zip20011[zip20011.length] = createMarker(new GPoint(-77.02759600,38.96408600),"
The Bridges Academy
6119 Georgia Avenue Nw
Washington, DC 20011
Co-ed school, PK-8
[ View School Profile ]
",iconGr); zip20007[zip20007.length] = createMarker(new GPoint(-77.06849100,38.91672400),"
British School Of Washington
2001 Wisconsin Avenue NW
Washington, DC 20007
Co-ed school, NS-12
[ View School Profile ]
",iconGr); zip20018[zip20018.length] = createMarker(new GPoint(-76.99467100,38.92189200),"
Calvary Christian Academy
806 Rhode Island Avenue Ne
Washington, DC 20018
Co-ed school, PK-8
[ View School Profile ]
",iconGr); zip20003[zip20003.length] = createMarker(new GPoint(-77.00325700,38.88208400),"
Capitol Hill Day School
210 South Carolina Avenue Se
Washington, DC 20003
Co-ed school, PK-8
[ View School Profile ]
",iconGr); zip20007[zip20007.length] = createMarker(new GPoint(-77.06202500,38.90773700),"
The Children's House Of Washington
3133 Dumbarton Street Nw
Washington, DC 20007
Co-ed school, PK-K
[ View School Profile ]
",iconGr); zip20002[zip20002.length] = createMarker(new GPoint(-77.00671000,38.91573700),"
City Lights
62 T St Ne
Washington, DC 20002
Co-ed school, 9-12
[ View School Profile ]
",iconGr); zip20020[zip20020.length] = createMarker(new GPoint(-76.99153400,38.86329500),"
Clara Muhammad School
2313 Martin Luther King Jr Avenue Se 15
Washington, DC 20020
Co-ed school, PK-8
[ View School Profile ]
",iconGr); zip20002[zip20002.length] = createMarker(new GPoint(-76.99293400,38.89606900),"
Cornerstone Community School
907 Maryland Avenue Ne
Washington, DC 20002
Co-ed school, K-7
[ View School Profile ]
",iconGr); zip20007[zip20007.length] = createMarker(new GPoint(-77.06136600,38.91274400),"
Devereux Children's Center
3050 R Street Nw
Washington, DC 20007
Co-ed school, 1-5
[ View School Profile ]
",iconGr); zip20020[zip20020.length] = createMarker(new GPoint(-76.94879700,38.86835500),"
Dupont Park Adventist School
3942 Alabama Avenue Se
Washington, DC 20020
Co-ed school, PK-10
[ View School Profile ]
",iconGr); zip20008[zip20008.length] = createMarker(new GPoint(-77.06226300,38.94213200),"
Edmund Burke School
4101 Connecticut Avenue, NW
Washington, DC 20008
Co-ed school, 6-12
[ View School Profile ]
",iconGr); zip20036[zip20036.length] = createMarker(new GPoint(-77.04183500,38.90839600),"
Emerson Preparatory School
1324 18th Street Nw
Washington, DC 20036
Co-ed school, 9-12
[ View School Profile ]
",iconGr); zip20009[zip20009.length] = createMarker(new GPoint(-77.02827500,38.91482900),"
F L O C Learning Center
1816 12th St Nw
Washington, DC 20009
Co-ed school, Ungraded
[ View School Profile ]
",iconGr); zip20007[zip20007.length] = createMarker(new GPoint(-77.08864000,38.92046900),"
The Field School
2301 Foxhall Rd Nw
Washington, DC 20007
Co-ed school, 7-12
[ View School Profile ]
",iconGr); zip20019[zip20019.length] = createMarker(new GPoint(-76.94068000,38.87971800),"
First Rock Baptist Church Christian School
834 Hilltop Ter Se
Washington, DC 20019
Co-ed school, K-5
[ View School Profile ]
",iconGr); zip20008[zip20008.length] = createMarker(new GPoint(-77.06513000,38.94728100),"
Franklin Montessori School
4473 Connecticut Avenue Nw
Washington, DC 20008
Co-ed school, NS-PK
[ View School Profile ]
",iconGr); zip20007[zip20007.length] = createMarker(new GPoint(-77.08593300,38.90863000),"
Georgetown Day School
4530 Macarthur Blvd Nw
Washington, DC 20007
Co-ed school, PK-12
[ View School Profile ]
",iconGr); zip20007[zip20007.length] = createMarker(new GPoint(-77.06262300,38.90375000),"
Georgetown Montessori School
1041 Wisconsin Avenue Nw
Washington, DC 20007
Co-ed school, NS-PK
[ View School Profile ]
",iconGr); zip20007[zip20007.length] = createMarker(new GPoint(-77.06927500,38.90929700),"
Georgetown Visitation School
1524 35th Street Nw
Washington, DC 20007
All-girls school, 9-12
[ View School Profile ]
",iconRd); zip20001[zip20001.length] = createMarker(new GPoint(-77.01166000,38.90140400),"
Gonzaga College High School
19 Eye Street NW
Washington, DC 20001
All-boys school, 9-12
[ View School Profile ]
",iconBl); zip20003[zip20003.length] = createMarker(new GPoint(-76.91330000,38.88980000),"
Holy Comforter/st Cyprian School
1503 East Capitol St.
Washington, DC 20003
Co-ed school, PK-8
[ View School Profile ]
",iconGr); zip20002[zip20002.length] = createMarker(new GPoint(-76.99183600,38.90491400),"
Holy Name Catholic School
1217 West Virginia Avenue Ne
Washington, DC 20002
Co-ed school, PK-8
[ View School Profile ]
",iconGr); zip20001[zip20001.length] = createMarker(new GPoint(-77.01438800,38.90487700),"
Holy Redeemer Catholic School
1135 New Jersey Avenue Nw
Washington, DC 20001
Co-ed school, PK-8
[ View School Profile ]
",iconGr); zip20003[zip20003.length] = createMarker(new GPoint(-76.99037500,38.88304400),"
Holy Temple Christian Academy
439 12th Street Se
Washington, DC 20003
Co-ed school, PK-8
[ View School Profile ]
",iconGr); zip20007[zip20007.length] = createMarker(new GPoint(-77.07015600,38.90703400),"
Holy Trinity School
1325 36th Street Nw
Washington, DC 20007
Co-ed school, PK-8
[ View School Profile ]
",iconGr); zip20059[zip20059.length] = createMarker(new GPoint(-77.01887300,38.92256300),"
Howard University Early Learning Programs
531 Collage Street Nw
Washington, DC 20059
Co-ed school, NS-PK
[ View School Profile ]
",iconGr); zip20002[zip20002.length] = createMarker(new GPoint(-77.03468200,38.95433500),"
Ideal Alternative School
702 15th Street Ne
Washington, DC 20002
Co-ed school, K-12
[ View School Profile ]
",iconGr); zip20001[zip20001.length] = createMarker(new GPoint(-77.02214600,38.90733700),"
Immaculate Conception School
711 N Street Nw
Washington, DC 20001
Co-ed school, PK-7
[ View School Profile ]
",iconGr); zip20011[zip20011.length] = createMarker(new GPoint(-77.03620400,38.96391600),"
Jewish Primary Day School of the Nation's Capital
6045 16th St., NW
Washington, DC 20011
Co-ed school, K-6
[ View School Profile ]
",iconGr); zip20004[zip20004.length] = createMarker(new GPoint(-77.02057500,38.89441900),"
Just Us Kids Inc
625 Indiana Avenue Nw
Washington, DC 20004
Co-ed school, K-K
[ View School Profile ]
",iconGr); zip20002[zip20002.length] = createMarker(new GPoint(-76.99465200,38.90482600),"
Kendall Demonstration Elementary School
800 Florida Avenue Ne
Washington, DC 20002
Co-ed school, PK-8
[ View School Profile ]
",iconGr); zip20011[zip20011.length] = createMarker(new GPoint(-77.03350100,38.95092400),"
Kingsbury Day School
5000 14th Street NW
Washington, DC 20011
Co-ed school, K-12
[ View School Profile ]
",iconGr); zip20017[zip20017.length] = createMarker(new GPoint(-77.00272400,38.94023900),"
Kirov Academy Of Ballet
4301 Harewood Rd N E
Washington, DC 20017
Co-ed school, 7-12
[ View School Profile ]
",iconGr); zip20032[zip20032.length] = createMarker(new GPoint(-77.00234600,38.84234900),"
Kuumba Learning Center
3328 Martin Luther King Jr Avenue Se
Washington, DC 20032
Co-ed school, K-1
[ View School Profile ]
",iconGr); zip20007[zip20007.length] = createMarker(new GPoint(-77.09189700,38.91486000),"
The Lab School Of Washington
4759 Reservoir Road Nw
Washington, DC 20007
Co-ed school, 8-8
[ View School Profile ]
",iconGr); zip20009[zip20009.length] = createMarker(new GPoint(-77.03628700,38.92769200),"
Little Flower Montessori
3029 16th Street Nw
Washington, DC 20009
Co-ed school, PK-K
[ View School Profile ]
",iconGr); zip20012[zip20012.length] = createMarker(new GPoint(-77.03853700,38.98594200),"
Lowell School
1640 Kalmia Road Nw
Washington, DC 20012
Co-ed school, PK-6
[ View School Profile ]
",iconGr); zip20017[zip20017.length] = createMarker(new GPoint(-76.99471300,38.94616300),"
Lt Joseph P Kennedy Jr Inst
801 Buchanan Street Ne
Washington, DC 20017
Co-ed school, UG-PK
[ View School Profile ]
",iconGr); zip20008[zip20008.length] = createMarker(new GPoint(-77.05949100,38.92885700),"
Maret School
3000 Cathedral Avenue Nw
Washington, DC 20008
Co-ed school, K-12
[ View School Profile ]
",iconGr); zip20017[zip20017.length] = createMarker(new GPoint(-76.98939300,38.93848300),"
Metropolitan Day School
1240 Randolph Street Ne
Washington, DC 20017
Co-ed school, PK-6
[ View School Profile ]
",iconGr); zip20015[zip20015.length] = createMarker(new GPoint(-77.07282600,38.95985800),"
Montessori School Of Chevy Chase
5312 Connecticut Avenue NW
Washington, DC 20015
Co-ed school, NS-K
[ View School Profile ]
",iconGr); zip20007[zip20007.length] = createMarker(new GPoint(-77.06497500,38.91010300),"
Montessori School Of Washington
1556 Wisconsin Avenue N.w
Washington, DC 20007
Co-ed school, PK-K
[ View School Profile ]
",iconGr); zip20019[zip20019.length] = createMarker(new GPoint(-76.92970000,38.89713000),"
Nannie Helen Burroughs School
601 50th Street Ne
Washington, DC 20019
Co-ed school, PK-6
[ View School Profile ]
",iconGr); zip20016[zip20016.length] = createMarker(new GPoint(-77.08930000,38.94180000),"
National Cathedral School
Mount Saint Albans
Washington, DC 20016
All-girls school, 4-12
[ View School Profile ]
",iconRd); zip20011[zip20011.length] = createMarker(new GPoint(-77.01377600,38.96503700),"
National Children's Center
6200 Second Street Nw
Washington, DC 20011
Co-ed school, NS-NS
[ View School Profile ]
",iconGr); zip20016[zip20016.length] = createMarker(new GPoint(-77.08176300,38.94249200),"
National Presbyterian School
4121 Nebraska Ave Nw
Washington, DC 20016
Co-ed school, NS-6
[ View School Profile ]
",iconGr); zip20011[zip20011.length] = createMarker(new GPoint(-77.02805700,38.96291300),"
Nativity Catholic Academy
6008 Georgia Avenue Nw
Washington, DC 20011
Co-ed school, PK-8
[ View School Profile ]
",iconGr); zip20020[zip20020.length] = createMarker(new GPoint(-76.97204600,38.86927000),"
Naylor Road School
2403 Naylor Road Se
Washington, DC 20020
Co-ed school, PK-8
[ View School Profile ]
",iconGr); zip20020[zip20020.length] = createMarker(new GPoint(-76.98203900,38.85718400),"
Our Lady Of Perpetual Help
1604 Morris Road Se
Washington, DC 20020
Co-ed school, 6-8
[ View School Profile ]
",iconGr); zip20007[zip20007.length] = createMarker(new GPoint(-77.09168900,38.91653600),"
Our Lady Of Victory School
4755 Whitehaven Parkway Nw
Washington, DC 20007
Co-ed school, PK-8
[ View School Profile ]
",iconGr); zip20019[zip20019.length] = createMarker(new GPoint(-76.94906500,38.88315600),"
Our Lady Queen Of Praze Cathol
3740 Ely Pl., S.e.
Washington, DC 20019
Co-ed school, PK-8
[ View School Profile ]
",iconGr); zip20011[zip20011.length] = createMarker(new GPoint(-77.03667500,38.94942200),"
Parkmont School
4842 16th Street Nw
Washington, DC 20011
Co-ed school, 6-12
[ View School Profile ]
",iconGr); zip20001[zip20001.length] = createMarker(new GPoint(-77.00717700,38.96340600),"
Preparatory School Of The District Of Columbia
33 K Street Nw
Washington, DC 20001
Co-ed school, 5-8
[ View School Profile ]
",iconGr); zip20016[zip20016.length] = createMarker(new GPoint(-77.07773200,38.94400500),"
Psychiatric Inst Of Washington
4228 Wisconsin Av N W
Washington, DC 20016
Co-ed school, NS-NS
[ View School Profile ]
",iconGr); zip20019[zip20019.length] = createMarker(new GPoint(-76.93686400,38.87273400),"
Randall Hyland Private School
4339 Bowen Road Se
Washington, DC 20019
Co-ed school, PK-K
[ View School Profile ]
",iconGr); zip20018[zip20018.length] = createMarker(new GPoint(-76.97920000,38.94446900),"
Rhema Christian Center School
1825 Michigan Ave Ne
Washington, DC 20018
Co-ed school, Ungraded
[ View School Profile ]
",iconGr); zip20007[zip20007.length] = createMarker(new GPoint(-77.09746500,38.91769800),"
The River School
4880 Macarthur Blvd NW
Washington, DC 20007
Co-ed school, NS-3
[ View School Profile ]
",iconGr); zip20009[zip20009.length] = createMarker(new GPoint(-77.04105200,38.91194700),"
Rock Creek International School (middle School)
1621 New Hampshire Avenue Nw
Washington, DC 20009
Co-ed school, PK-K
[ View School Profile ]
",iconGr); zip20011[zip20011.length] = createMarker(new GPoint(-77.00917600,38.96586500),"
Roots Activity Learning Center
6222 N Capitol Street Nw
Washington, DC 20011
Co-ed school, PK-8
[ View School Profile ]
",iconGr); zip20010[zip20010.length] = createMarker(new GPoint(-77.03707400,38.93204100),"
Sacred Heart School
1625 Park Road Nw
Washington, DC 20010
Co-ed school, PK-8
[ View School Profile ]
",iconGr); zip20016[zip20016.length] = createMarker(new GPoint(-77.08930000,38.94180000),"
St. Albans School
Mount St Alban
Washington, DC 20016
All-boys school, 5-12
[ View School Profile ]
",iconBl); zip20016[zip20016.length] = createMarker(new GPoint(-77.07915700,38.94663900),"
St. Ann's Academy
4404 Wisconsin Ave Nw
Washington, DC 20016
Co-ed school, PK-8
[ View School Profile ]
",iconGr); zip20009[zip20009.length] = createMarker(new GPoint(-77.03262800,38.91827300),"
St. Augustine School
1421 V Street N.W.
Washington, DC 20009
Co-ed school, PK-8
[ View School Profile ]
",iconGr); zip20002[zip20002.length] = createMarker(new GPoint(-76.97531600,38.89365400),"
St. Benedict The Moor School
320 21st Street Ne
Washington, DC 20002
Co-ed school, K-8
[ View School Profile ]
",iconGr); zip20018[zip20018.length] = createMarker(new GPoint(-76.97575200,38.92906000),"
St. Francis De Sales School
2019 Rhode Island Avenue Ne
Washington, DC 20018
Co-ed school, PK-8
[ View School Profile ]
",iconGr); zip20011[zip20011.length] = createMarker(new GPoint(-77.02007000,38.94405200),"
St. Gabriel School
510 Webster St NW
Washington, DC 20011
Co-ed school, K-8
[ View School Profile ]
",iconGr); zip20015[zip20015.length] = createMarker(new GPoint(-77.05426500,38.96128000),"
St. Johns College High School
2607 Military Road Nw
Washington, DC 20015
Co-ed school, 9-12
[ View School Profile ]
",iconGr); zip20016[zip20016.length] = createMarker(new GPoint(-77.08339000,38.95656300),"
St. Johns Community Services
5151 Wisconson Ave Nw Suite 400
Washington, DC 20016
Co-ed school, NS-NS
[ View School Profile ]
",iconGr); zip20007[zip20007.length] = createMarker(new GPoint(-77.08885200,38.91634200),"
St. Patrick S Episcopal Day School
4700 Whitehaven Pkwy NW
Washington, DC 20007
Co-ed school, NS-8
[ View School Profile ]
",iconGr); zip20003[zip20003.length] = createMarker(new GPoint(-77.00182300,38.88400700),"
St. Peter's Interparish School
422 3rd Street Se
Washington, DC 20003
Co-ed school, PK-8
[ View School Profile ]
",iconGr); zip20032[zip20032.length] = createMarker(new GPoint(-77.00037400,38.82638900),"
St. Thomas More Catholic School
4265 4th St SE
Washington, DC 20032
Co-ed school, PK-8
[ View School Profile ]
",iconGr); zip20010[zip20010.length] = createMarker(new GPoint(-77.03486600,38.93281500),"
San Miguel School
1525 Newton Street Nw
Washington, DC 20010
All-boys school, 6-8
[ View School Profile ]
",iconBl); zip20010[zip20010.length] = createMarker(new GPoint(-77.02492000,38.93278600),"
Sankofa Fie
770 Park Road Nw
Washington, DC 20010
Co-ed school, PK-12
[ View School Profile ]
",iconGr); zip20008[zip20008.length] = createMarker(new GPoint(-77.06991500,38.94640000),"
Sheridan School
4400 36th Street NW
Washington, DC 20008
Co-ed school, K-8
[ View School Profile ]
",iconGr); zip20016[zip20016.length] = createMarker(new GPoint(-77.07455800,38.93909700),"
Sidwell Friends School
3825 Wisconsin Ave, N.w.
Washington, DC 20016
Co-ed school, PK-12
[ View School Profile ]
",iconGr); zip20013[zip20013.length] = createMarker(new GPoint(-77.03195900,38.89037000),"
Smithsonian Early Enrichment Center
Po Box 37012 Nmnh Rm Ce-g50 Mrc 184
Washington, DC 20013
Co-ed school, NS-PK
[ View School Profile ]
",iconGr); zip20017[zip20017.length] = createMarker(new GPoint(-76.98550900,38.94440500),"
St Anselm's Abbey School
4501 S Dakota Avenue Ne
Washington, DC 20017
All-boys school, 6-12
[ View School Profile ]
",iconBl); zip20020[zip20020.length] = createMarker(new GPoint(-76.96882300,38.87303700),"
St Francis Xavier Catholic School
2700 O Street Se
Washington, DC 20020
Co-ed school, PK-8
[ View School Profile ]
",iconGr); zip20001[zip20001.length] = createMarker(new GPoint(-77.02007800,38.90468200),"
Sunrise Academy
1130 6th Street Nw
Washington, DC 20001
All-boys school, 3-12
[ View School Profile ]
",iconBl); zip20011[zip20011.length] = createMarker(new GPoint(-77.03033000,38.93983700),"
Tots Developmental School
1317 Shepherd Street Nw
Washington, DC 20011
Co-ed school, PK-3
[ View School Profile ]
",iconGr); zip20001[zip20001.length] = createMarker(new GPoint(-77.02311900,38.91046000),"
Ujamaa School
1554 Eighth St., Nw
Washington, DC 20001
Co-ed school, NS-NS
[ View School Profile ]
",iconGr); zip20017[zip20017.length] = createMarker(new GPoint(-77.00280800,38.94020000),"
Universal Ballet Academy
4301 Harewood Road Ne
Washington, DC 20017
Co-ed school, 6-12
[ View School Profile ]
",iconGr); zip20008[zip20008.length] = createMarker(new GPoint(-77.06214400,38.93336300),"
Washington International School
3100 Macomb Street Nw
Washington, DC 20008
Co-ed school, PK-12
[ View School Profile ]
",iconGr); zip20017[zip20017.length] = createMarker(new GPoint(-76.99435400,38.94271400),"
Washington Jesuit Academy
900 Varnum Street Ne
Washington, DC 20017
All-boys school, 6-8
[ View School Profile ]
",iconBl); zip20020[zip20020.length] = createMarker(new GPoint(-76.99116900,38.85802700),"
Washington Middle School/girls
2683 Douglass Road Se
Washington, DC 20020
All-girls school, 4-8
[ View School Profile ]
",iconRd); zip20018[zip20018.length] = createMarker(new GPoint(-76.97208300,38.93122000),"
Washington Science And Technology Academy
2420 Rhode Island Avenue Ne
Washington, DC 20018
Co-ed school, PK-5
[ View School Profile ]
",iconGr); } // 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(zip20001); map.removeOverlays(zip20002); map.removeOverlays(zip20003); map.removeOverlays(zip20004); map.removeOverlays(zip20007); map.removeOverlays(zip20008); map.removeOverlays(zip20009); map.removeOverlays(zip20010); map.removeOverlays(zip20011); map.removeOverlays(zip20012); map.removeOverlays(zip20013); map.removeOverlays(zip20015); map.removeOverlays(zip20016); map.removeOverlays(zip20017); map.removeOverlays(zip20018); map.removeOverlays(zip20019); map.removeOverlays(zip20020); map.removeOverlays(zip20032); map.removeOverlays(zip20036); map.removeOverlays(zip20059); 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(zip20011);map.removeOverlays(zip20001); map.removeOverlays(zip20002); map.removeOverlays(zip20003); map.removeOverlays(zip20004); map.removeOverlays(zip20007); map.removeOverlays(zip20008); map.removeOverlays(zip20009); map.removeOverlays(zip20010); map.removeOverlays(zip20011); map.removeOverlays(zip20012); map.removeOverlays(zip20013); map.removeOverlays(zip20015); map.removeOverlays(zip20016); map.removeOverlays(zip20017); map.removeOverlays(zip20018); map.removeOverlays(zip20019); map.removeOverlays(zip20020); map.removeOverlays(zip20032); map.removeOverlays(zip20036); map.removeOverlays(zip20059); map.addOverlays(zip20001); centerByArray(zip20001, false, false); cntMarker += zip20001.length; map.addOverlays(zip20002); centerByArray(zip20002, false, false); cntMarker += zip20002.length; map.addOverlays(zip20003); centerByArray(zip20003, false, false); cntMarker += zip20003.length; map.addOverlays(zip20004); centerByArray(zip20004, false, false); cntMarker += zip20004.length; map.addOverlays(zip20007); centerByArray(zip20007, false, false); cntMarker += zip20007.length; map.addOverlays(zip20008); centerByArray(zip20008, false, false); cntMarker += zip20008.length; map.addOverlays(zip20009); centerByArray(zip20009, false, false); cntMarker += zip20009.length; map.addOverlays(zip20010); centerByArray(zip20010, false, false); cntMarker += zip20010.length; map.addOverlays(zip20011); centerByArray(zip20011, false, false); cntMarker += zip20011.length; map.addOverlays(zip20012); centerByArray(zip20012, false, false); cntMarker += zip20012.length; map.addOverlays(zip20013); centerByArray(zip20013, false, false); cntMarker += zip20013.length; map.addOverlays(zip20015); centerByArray(zip20015, false, false); cntMarker += zip20015.length; map.addOverlays(zip20016); centerByArray(zip20016, false, false); cntMarker += zip20016.length; map.addOverlays(zip20017); centerByArray(zip20017, false, false); cntMarker += zip20017.length; map.addOverlays(zip20018); centerByArray(zip20018, false, false); cntMarker += zip20018.length; map.addOverlays(zip20019); centerByArray(zip20019, false, false); cntMarker += zip20019.length; map.addOverlays(zip20020); centerByArray(zip20020, false, false); cntMarker += zip20020.length; map.addOverlays(zip20032); centerByArray(zip20032, false, false); cntMarker += zip20032.length; map.addOverlays(zip20036); centerByArray(zip20036, false, false); cntMarker += zip20036.length; map.addOverlays(zip20059); centerByArray(zip20059, false, false); cntMarker += zip20059.length; centerByArray(zip20011,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'); //window.open('/map.php?type=1&schools=&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; }