function addMarkers() { mySelect = document.getElementById('selection'); N_Charleston = [];No_Charleston = [];Charleston = [];Johns_Island = [];Yonges_Island = [];Mt_Pleasant = [];Charleston_Hgts = [];Ravenel = [];Wadamalaw_Isl = [];North_Charleston = [];James_Island = [];Edisto_Island = [];Ladson = [];Mcclellanville = [];Mcclelleanville = [];Mount_Pleasant = [];Sullivans_Is = [];mySelect.options[mySelect.options.length] = new Option("Charleston schools",'all=Charleston'); mySelect.options[mySelect.options.length] = new Option("Charleston Hgts schools",'all=Charleston_Hgts'); mySelect.options[mySelect.options.length] = new Option("Edisto Island schools",'all=Edisto_Island'); mySelect.options[mySelect.options.length] = new Option("James Island schools",'all=James_Island'); mySelect.options[mySelect.options.length] = new Option("Johns Island schools",'all=Johns_Island'); mySelect.options[mySelect.options.length] = new Option("Ladson schools",'all=Ladson'); mySelect.options[mySelect.options.length] = new Option("Mcclellanville schools",'all=Mcclellanville'); mySelect.options[mySelect.options.length] = new Option("Mcclelleanville schools",'all=Mcclelleanville'); mySelect.options[mySelect.options.length] = new Option("Mount Pleasant schools",'all=Mount_Pleasant'); mySelect.options[mySelect.options.length] = new Option("Mt Pleasant schools",'all=Mt_Pleasant'); mySelect.options[mySelect.options.length] = new Option("N Charleston schools",'all=N_Charleston'); mySelect.options[mySelect.options.length] = new Option("No Charleston schools",'all=No_Charleston'); mySelect.options[mySelect.options.length] = new Option("North Charleston schools",'all=North_Charleston'); mySelect.options[mySelect.options.length] = new Option("Ravenel schools",'all=Ravenel'); mySelect.options[mySelect.options.length] = new Option("Sullivans Is schools",'all=Sullivans_Is'); mySelect.options[mySelect.options.length] = new Option("Wadamalaw Isl schools",'all=Wadamalaw_Isl'); mySelect.options[mySelect.options.length] = new Option("Yonges Island schools",'all=Yonges_Island'); mySelect.options[mySelect.options.length] = new Option("---------------------------",''); N_Charleston[N_Charleston.length] = createMarker(new GPoint(-80.06039429,32.96083450),"
A C Corcoran Elementary School
8585 Vistavia Rd
N. Charleston, SC 29406

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("A C Corcoran Elementary School",'N_Charleston=' + N_Charleston.length); No_Charleston[No_Charleston.length] = createMarker(new GPoint(-79.96438599,32.85772705),"
Academic Magnet High School
1525 Avenue B. South
No. Charleston, SC 29405

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Academic Magnet High School",'No_Charleston=' + No_Charleston.length); Charleston[Charleston.length] = createMarker(new GPoint(-80.05603790,32.94135284),"
Alice Birney Middle School
7750 Pinehurst St
Charleston, SC 29420

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Alice Birney Middle School",'Charleston=' + Charleston.length); Johns_Island[Johns_Island.length] = createMarker(new GPoint(-80.10345459,32.72396469),"
Angel Oak Elementary School
6134 Chisolm Road
Johns Island, SC 29455

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Angel Oak Elementary School",'Johns_Island=' + Johns_Island.length); Charleston[Charleston.length] = createMarker(new GPoint(-80.02136993,32.80189133),"
Ashley River Creative Arts Elementary School
1871 Wallace School Rd
Charleston, SC 29407

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Ashley River Creative Arts Elementary School",'Charleston=' + Charleston.length); Yonges_Island[Yonges_Island.length] = createMarker(new GPoint(-80.25867462,32.72573090),"
Baptist Hill High School
5117 Baptist Hill Rd.
Yonges Island, SC 29494

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Baptist Hill High School",'Yonges_Island=' + Yonges_Island.length); Mt_Pleasant[Mt_Pleasant.length] = createMarker(new GPoint(-79.85456085,32.84634399),"
Belle Hall Elementary School
385 Egypt Street
Mt. Pleasant, SC 29464

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Belle Hall Elementary School",'Mt_Pleasant=' + Mt_Pleasant.length); Charleston_Hgts[Charleston_Hgts.length] = createMarker(new GPoint(-80.00638580,32.85909271),"
Brentwood Middle School
2685 Leeds Avenue
Charleston Hgts, SC 29405

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Brentwood Middle School",'Charleston_Hgts=' + Charleston_Hgts.length); Charleston[Charleston.length] = createMarker(new GPoint(-79.93249512,32.78730011),"
Buist Academy
103 Calhoun Street
Charleston, SC 29401

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Buist Academy",'Charleston=' + Charleston.length); Charleston[Charleston.length] = createMarker(new GPoint(-79.95318604,32.79372406),"
Burke High School
244 President St
Charleston, SC 29403

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Burke High School",'Charleston=' + Charleston.length); Yonges_Island[Yonges_Island.length] = createMarker(new GPoint(-80.23120880,32.69337845),"
C C Blaney Elementary School
1784 Hwy 162
Yonges Island, SC 29494

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("C C Blaney Elementary School",'Yonges_Island=' + Yonges_Island.length); Charleston[Charleston.length] = createMarker(new GPoint(-80.07483673,32.79793549),"
C E Williams Middle For Creative & Scien
640 Butte Street
Charleston, SC 29414

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("C E Williams Middle For Creative & Scien",'Charleston=' + Charleston.length); Mt_Pleasant[Mt_Pleasant.length] = createMarker(new GPoint(-79.77928162,32.87480545),"
Charles Pinckney Elementary School
3300 Thomas Cario Blvd.
Mt. Pleasant, SC 29466

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Charles Pinckney Elementary School",'Mt_Pleasant=' + Mt_Pleasant.length); Charleston[Charleston.length] = createMarker(new GPoint(-80.09310150,32.93307877),"
Charleston Development Academy
233 Line Street
Charleston, SC 29403

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Charleston Development Academy",'Charleston=' + Charleston.length); Charleston[Charleston.length] = createMarker(new GPoint(-79.94121552,32.80000305),"
Charleston Progressive School
220 Nassau Street
Charleston, SC 29403

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Charleston Progressive School",'Charleston=' + Charleston.length); No_Charleston[No_Charleston.length] = createMarker(new GPoint(-79.99955750,32.88946915),"
Charleston School Of Arts
1600 Saranac Street
No. Charleston, SC 29401

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Charleston School Of Arts",'No_Charleston=' + No_Charleston.length); No_Charleston[No_Charleston.length] = createMarker(new GPoint(-79.99900055,32.88166046),"
Charlestowne Academy
1800 Pearly Lane
No. Charleston, SC 29405

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Charlestowne Academy",'No_Charleston=' + No_Charleston.length); No_Charleston[No_Charleston.length] = createMarker(new GPoint(-79.96925354,32.85533142),"
Chicora Elementary School
1912 Success Street
No. Charleston, SC 29405

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Chicora Elementary School",'No_Charleston=' + No_Charleston.length); Charleston[Charleston.length] = createMarker(new GPoint(-79.93711853,32.80106735),"
Clyde Sanders Elementary School
805 Morrison Drive
Charleston, SC 29403

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Clyde Sanders Elementary School",'Charleston=' + Charleston.length); Charleston[Charleston.length] = createMarker(new GPoint(-80.07225800,32.85537338),"
Drayton Hall Middle School
3183 Ashley River Rd
Charleston, SC 29414

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Drayton Hall Middle School",'Charleston=' + Charleston.length); Ravenel[Ravenel.length] = createMarker(new GPoint(-80.21095276,32.77095032),"
E B Ellington Elementary School
5600 Ellington Road
Ravenel, SC 29470

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("E B Ellington Elementary School",'Ravenel=' + Ravenel.length); Wadamalaw_Isl[Wadamalaw_Isl.length] = createMarker(new GPoint(-80.18289185,32.64133835),"
Edith L Frierson Elementary School
6133 Maybank
Wadamalaw Isl, SC 29487

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Edith L Frierson Elementary School",'Wadamalaw_Isl=' + Wadamalaw_Isl.length); Charleston_Hgts[Charleston_Hgts.length] = createMarker(new GPoint(-79.99157715,32.85346222),"
Edmund A Burns Elementary School
3750 Dorchester Rd
Charleston Hgts, SC 29405

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Edmund A Burns Elementary School",'Charleston_Hgts=' + Charleston_Hgts.length); North_Charleston[North_Charleston.length] = createMarker(new GPoint(-80.09310150,32.93307877),"
Elease Butler Ivy Academy
7350 Cross County Road
North Charleston, SC 29418

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Elease Butler Ivy Academy",'North_Charleston=' + North_Charleston.length); James_Island[James_Island.length] = createMarker(new GPoint(-79.97342682,32.73486328),"
Fort Johnson Middle School
1825 Camp Road
James Island, SC 29412

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Fort Johnson Middle School",'James_Island=' + James_Island.length); No_Charleston[No_Charleston.length] = createMarker(new GPoint(-79.95580292,32.80431366),"
Garrett School Of Technology
31 Gordon Street
No. Charleston, SC 29405

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Garrett School Of Technology",'No_Charleston=' + No_Charleston.length); Charleston[Charleston.length] = createMarker(new GPoint(-79.96873474,32.75587082),"
Harbor View Elementary School
1576 Harbor View Rd
Charleston, SC 29412

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Harbor View Elementary School",'Charleston=' + Charleston.length); Johns_Island[Johns_Island.length] = createMarker(new GPoint(-80.07746124,32.71908951),"
Haut Gap Middle School
1861 Bohicket Road
Johns Island, SC 29455

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Haut Gap Middle School",'Johns_Island=' + Johns_Island.length); No_Charleston[No_Charleston.length] = createMarker(new GPoint(-80.07691000,32.89336500),"
Hunley Park Elementary School
1000 Michigan Ave
No. Charleston, SC 29404

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Hunley Park Elementary School",'No_Charleston=' + No_Charleston.length); Mt_Pleasant[Mt_Pleasant.length] = createMarker(new GPoint(-79.85364532,32.82024765),"
James B Edwards Elementary School
855 Von Kolintz Road
Mt Pleasant, SC 29464

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("James B Edwards Elementary School",'Mt_Pleasant=' + Mt_Pleasant.length); Charleston[Charleston.length] = createMarker(new GPoint(-79.93151093,32.77643967),"
James Island Charter High School
1000 Fort Johnson Road
Charleston, SC 29412

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("James Island Charter High School",'Charleston=' + Charleston.length); Charleston[Charleston.length] = createMarker(new GPoint(-80.09310150,32.93307877),"
James Island Elementary School
1872 Grimball Road
Charleston, SC 29412

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("James Island Elementary School",'Charleston=' + Charleston.length); Charleston[Charleston.length] = createMarker(new GPoint(-79.96187592,32.73251343),"
James Island Middle School
1484 Camp Road
Charleston, SC 29412

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("James Island Middle School",'Charleston=' + Charleston.length); Charleston[Charleston.length] = createMarker(new GPoint(-79.94882202,32.80038834),"
James Simons Elementary School
741 King Street
Charleston, SC 29403

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("James Simons Elementary School",'Charleston=' + Charleston.length); Edisto_Island[Edisto_Island.length] = createMarker(new GPoint(-80.29956055,32.57986832),"
Jane Edwards Elementary School
1960 Jane Edwards Road
Edisto Island, SC 29438

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Jane Edwards Elementary School",'Edisto_Island=' + Edisto_Island.length); Mt_Pleasant[Mt_Pleasant.length] = createMarker(new GPoint(-79.79740906,32.85054016),"
Jennie Moore Elementary School
1256 Hamlin Road
Mt Pleasant, SC 29464

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Jennie Moore Elementary School",'Mt_Pleasant=' + Mt_Pleasant.length); Ladson[Ladson.length] = createMarker(new GPoint(-80.10460663,32.98657990),"
Ladson Elementary School
3321 Ladson Road
Ladson, SC 29456

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Ladson Elementary School",'Ladson=' + Ladson.length); Mt_Pleasant[Mt_Pleasant.length] = createMarker(new GPoint(-79.81650543,32.84193420),"
Laing Middle School
2213 Hwy 17 North
Mt Pleasant, SC 29464

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Laing Middle School",'Mt_Pleasant=' + Mt_Pleasant.length); N_Charleston[N_Charleston.length] = createMarker(new GPoint(-80.06629181,32.88487625),"
Lambs Elementary School
6800 Dorchester Road
N Charleston, SC 29418

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Lambs Elementary School",'N_Charleston=' + N_Charleston.length); Mt_Pleasant[Mt_Pleasant.length] = createMarker(new GPoint(-10.00000000,10.00000000),"
Laurel Hill Primary
3100 Thomas Cario Boulevard
Mt. Pleasant, SC 29466

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Laurel Hill Primary",'Mt_Pleasant=' + Mt_Pleasant.length); Mcclellanville[Mcclellanville.length] = createMarker(new GPoint(-79.46116638,33.08808899),"
Lincoln High School
714 Lincoln School Rd
Mcclellanville, SC 29458

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Lincoln High School",'Mcclellanville=' + Mcclellanville.length); Charleston[Charleston.length] = createMarker(new GPoint(-79.95093536,32.80323410),"
M R Rivers Middle School
1002 King Street
Charleston, SC 29403

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("M R Rivers Middle School",'Charleston=' + Charleston.length); N_Charleston[N_Charleston.length] = createMarker(new GPoint(-79.99116516,32.87576294),"
Malcolm C. Hursey Elementary School
4542 Simms Street
N Charleston, SC 29405

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Malcolm C. Hursey Elementary School",'N_Charleston=' + N_Charleston.length); Charleston_Hgts[Charleston_Hgts.length] = createMarker(new GPoint(-79.97852325,32.84702682),"
Mary Ford Elementary School
3180 Azalea Drive
Charleston Hgts, SC 29405

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Mary Ford Elementary School",'Charleston_Hgts=' + Charleston_Hgts.length); N_Charleston[N_Charleston.length] = createMarker(new GPoint(-80.01047516,32.89991760),"
Matilda F. Dunston Elementary School
1825 Remount Road
N Charleston, SC 29406

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Matilda F. Dunston Elementary School",'N_Charleston=' + N_Charleston.length); Mcclelleanville[Mcclelleanville.length] = createMarker(new GPoint(-79.46155548,33.08829498),"
Mcclellanville Middle School
711 Pinckney Street
Mcclelleanville, SC 29458

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Mcclellanville Middle School",'Mcclelleanville=' + Mcclelleanville.length); Charleston[Charleston.length] = createMarker(new GPoint(-79.93713379,32.78010941),"
Memminger Elementary School
20 Beaufain Street
Charleston, SC 29403

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Memminger Elementary School",'Charleston=' + Charleston.length); No_Charleston[No_Charleston.length] = createMarker(new GPoint(-80.04093170,32.92066193),"
Midland Park Elementary School
2415 Midland Park Rd
No. Charleston, SC 29418

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Midland Park Elementary School",'No_Charleston=' + No_Charleston.length); N_Charleston[N_Charleston.length] = createMarker(new GPoint(-79.96892548,32.85016251),"
Military Magnet Academy
2950 Carner Avenue
N. Charleston, SC 29405

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Military Magnet Academy",'N_Charleston=' + N_Charleston.length); Yonges_Island[Yonges_Island.length] = createMarker(new GPoint(-80.37465668,32.69961929),"
Minnie Hughes Elementary School
8548 Willtown Rd
Yonges Island, SC 29449

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Minnie Hughes Elementary School",'Yonges_Island=' + Yonges_Island.length); Charleston[Charleston.length] = createMarker(new GPoint(-79.94777679,32.79437637),"
Mitchell Elementary School
2 Perry Street
Charleston, SC 29403

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Mitchell Elementary School",'Charleston=' + Charleston.length); Mount_Pleasant[Mount_Pleasant.length] = createMarker(new GPoint(-79.83899689,32.82318115),"
Montessori School Of Mt. Pleasant
88 Vincent Drive
Mount Pleasant, SC 29464

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Montessori School Of Mt. Pleasant",'Mount_Pleasant=' + Mount_Pleasant.length); No_Charleston[No_Charleston.length] = createMarker(new GPoint(-80.00252533,32.87767792),"
Morningside Middle School
1999 Singley Lane
No Charleston, SC 29405

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Morningside Middle School",'No_Charleston=' + No_Charleston.length); Mt_Pleasant[Mt_Pleasant.length] = createMarker(new GPoint(-79.87237549,32.79148865),"
Moultrie Middle School
645 Coleman Blvd
Mt Pleasant, SC 29464

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Moultrie Middle School",'Mt_Pleasant=' + Mt_Pleasant.length); Mt_Pleasant[Mt_Pleasant.length] = createMarker(new GPoint(-79.86360931,32.78090668),"
Mt Pleasant Academy
605 Center Street
Mt Pleasant, SC 29464

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Mt Pleasant Academy",'Mt_Pleasant=' + Mt_Pleasant.length); Johns_Island[Johns_Island.length] = createMarker(new GPoint(-80.04481506,32.67651749),"
Mt. Zion Elementary School
3464 River Road
Johns Island, SC 29455

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Mt. Zion Elementary School",'Johns_Island=' + Johns_Island.length); Charleston[Charleston.length] = createMarker(new GPoint(-79.98506165,32.74359894),"
Murray Lasaine Elementary School
691 Riverland Drive
Charleston, SC 29412

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Murray Lasaine Elementary School",'Charleston=' + Charleston.length); No_Charleston[No_Charleston.length] = createMarker(new GPoint(-79.98222351,32.88424301),"
North Charleston Elementary School
4921 Durant Avenue
No Charleston, SC 29405

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("North Charleston Elementary School",'No_Charleston=' + No_Charleston.length); No_Charleston[No_Charleston.length] = createMarker(new GPoint(-79.97818756,32.88136292),"
North Charleston High School
1087 East Montague
No. Charleston, SC 29405

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("North Charleston High School",'No_Charleston=' + No_Charleston.length); Charleston[Charleston.length] = createMarker(new GPoint(-80.03540039,32.78860092),"
Oakland Elementary School
2728 Arlington Drive
Charleston, SC 29414

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Oakland Elementary School",'Charleston=' + Charleston.length); Charleston[Charleston.length] = createMarker(new GPoint(-80.00012207,32.82086182),"
Orange Grove Elementary School
1225 Orange Branch
Charleston, SC 29407

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Orange Grove Elementary School",'Charleston=' + Charleston.length); No_Charleston[No_Charleston.length] = createMarker(new GPoint(-80.07730865,32.93748474),"
Pepperhill Elementary School
3300 E Creola Rd
No Charleston, SC 29420

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Pepperhill Elementary School",'No_Charleston=' + No_Charleston.length); No_Charleston[No_Charleston.length] = createMarker(new GPoint(-80.05636597,32.94134903),"
R B Stall High School
7749 Pinehurst St
No. Charleston, SC 29420

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("R B Stall High School",'No_Charleston=' + No_Charleston.length); Yonges_Island[Yonges_Island.length] = createMarker(new GPoint(-80.29134369,32.72760010),"
R D Schroder Middle School
7224 Hwy 162
Yonges Island, SC 29449

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("R D Schroder Middle School",'Yonges_Island=' + Yonges_Island.length); No_Charleston[No_Charleston.length] = createMarker(new GPoint(-79.97917938,32.86254883),"
Ronald E Mcnair Elementary School
3795 Spruill Avenue
No Charleston, SC 29405

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Ronald E Mcnair Elementary School",'No_Charleston=' + No_Charleston.length); Charleston[Charleston.length] = createMarker(new GPoint(-80.09310150,32.93307877),"
Septima P. Clark Corporate Academy
1929 Grimball Road
Charleston, SC 29412

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Septima P. Clark Corporate Academy",'Charleston=' + Charleston.length); Charleston[Charleston.length] = createMarker(new GPoint(-80.05866241,32.83665848),"
Springfield Elementary School
2741 Clover Street
Charleston, SC 29414

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Springfield Elementary School",'Charleston=' + Charleston.length); Charleston[Charleston.length] = createMarker(new GPoint(-79.98097229,32.77775574),"
St Andrews School Of Math And Science
30 Chadwick Drive
Charleston, SC 29407

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("St Andrews School Of Math And Science",'Charleston=' + Charleston.length); Mcclellanville[Mcclellanville.length] = createMarker(new GPoint(-79.53919983,33.06069565),"
St James-santee Elementary School
8900 North Highway 17
Mcclellanville, SC 29458

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("St James-santee Elementary School",'Mcclellanville=' + Mcclellanville.length); Johns_Island[Johns_Island.length] = createMarker(new GPoint(-93.96714600,30.44745800),"
St John's High School
01518 Main Road
John's Island, SC 29455

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("St John's High School",'Johns_Island=' + Johns_Island.length); Charleston[Charleston.length] = createMarker(new GPoint(-79.92704773,32.73863983),"
Stiles Point Elementary School
883 Mikell Dr
Charleston, SC 29412

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Stiles Point Elementary School",'Charleston=' + Charleston.length); Charleston[Charleston.length] = createMarker(new GPoint(-80.01509094,32.78042221),"
Stono Park Elementary School
1699 Garden St
Charleston, SC 29407

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Stono Park Elementary School",'Charleston=' + Charleston.length); Sullivans_Is[Sullivans_Is.length] = createMarker(new GPoint(-79.84077454,32.75995255),"
Sullivans Island Elementary School
2015 Ion Avenue
Sullivans Is, SC 29482

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Sullivans Island Elementary School",'Sullivans_Is=' + Sullivans_Is.length); N_Charleston[N_Charleston.length] = createMarker(new GPoint(-80.00894100,32.88283900),"
Susan G. Boykin Academy
4951 Rivers Avenue
N. Charleston, SC 29406

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Susan G. Boykin Academy",'N_Charleston=' + N_Charleston.length); Mount_Pleasant[Mount_Pleasant.length] = createMarker(new GPoint(-79.78713989,32.87748718),"
Thomas C. Cario Middle School
3500 Thomas Cario Blvd.
Mount Pleasant, SC 29466

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Thomas C. Cario Middle School",'Mount_Pleasant=' + Mount_Pleasant.length); No_Charleston[No_Charleston.length] = createMarker(new GPoint(-80.04705048,32.86094284),"
W B Goodwin Elementary School
5501 Dorchester Rd
No. Charleston, SC 29418

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("W B Goodwin Elementary School",'No_Charleston=' + No_Charleston.length); Mt_Pleasant[Mt_Pleasant.length] = createMarker(new GPoint(-79.84267426,32.82508469),"
Wando High School
1560 Mathis Ferry Rd
Mt Pleasant, SC 29464

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Wando High School",'Mt_Pleasant=' + Mt_Pleasant.length); Charleston[Charleston.length] = createMarker(new GPoint(-80.02443695,32.81153870),"
West Ashley High School
William Kennerty Drive
Charleston, SC 29407

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("West Ashley High School",'Charleston=' + Charleston.length); Charleston[Charleston.length] = createMarker(new GPoint(-80.02028656,32.79034042),"
West Ashley Intermediate
721 Wappoo Road
Charleston, SC 29407

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("West Ashley Intermediate",'Charleston=' + Charleston.length); Charleston[Charleston.length] = createMarker(new GPoint(-80.02809906,32.81140137),"
West Ashley Middle School
776 William Kennerty Dri
Charleston, SC 29407

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("West Ashley Middle School",'Charleston=' + Charleston.length); Mt_Pleasant[Mt_Pleasant.length] = createMarker(new GPoint(-79.85199738,32.79729462),"
Whiteside Mamie Elementary School
1120 Rifle Range Rd
Mt Pleasant, SC 29464

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Whiteside Mamie Elementary School",'Mt_Pleasant=' + Mt_Pleasant.length); Charleston[Charleston.length] = createMarker(new GPoint(-79.93500519,32.79653931),"
Wilmot Fraser Elementary School
63 Columbus Street
Charleston, SC 29403

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Wilmot Fraser Elementary School",'Charleston=' + Charleston.length); North_Charleston[North_Charleston.length] = createMarker(new GPoint(-80.09310150,32.93307877),"
Youthbuild Charleston Center
7555 North Spartan Blvd
North Charleston, SC 29418

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Youthbuild Charleston Center",'North_Charleston=' + North_Charleston.length); } // 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(Charleston); map.removeOverlays(Charleston_Hgts); map.removeOverlays(Edisto_Island); map.removeOverlays(James_Island); map.removeOverlays(Johns_Island); map.removeOverlays(Ladson); map.removeOverlays(Mcclellanville); map.removeOverlays(Mcclelleanville); map.removeOverlays(Mount_Pleasant); map.removeOverlays(Mt_Pleasant); map.removeOverlays(N_Charleston); map.removeOverlays(No_Charleston); map.removeOverlays(North_Charleston); map.removeOverlays(Ravenel); map.removeOverlays(Sullivans_Is); map.removeOverlays(Wadamalaw_Isl); map.removeOverlays(Yonges_Island); 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(N_Charleston);map.removeOverlays(Charleston); map.removeOverlays(Charleston_Hgts); map.removeOverlays(Edisto_Island); map.removeOverlays(James_Island); map.removeOverlays(Johns_Island); map.removeOverlays(Ladson); map.removeOverlays(Mcclellanville); map.removeOverlays(Mcclelleanville); map.removeOverlays(Mount_Pleasant); map.removeOverlays(Mt_Pleasant); map.removeOverlays(N_Charleston); map.removeOverlays(No_Charleston); map.removeOverlays(North_Charleston); map.removeOverlays(Ravenel); map.removeOverlays(Sullivans_Is); map.removeOverlays(Wadamalaw_Isl); map.removeOverlays(Yonges_Island); map.addOverlays(Charleston); centerByArray(Charleston, false, false); cntMarker += Charleston.length; map.addOverlays(Charleston_Hgts); centerByArray(Charleston_Hgts, false, false); cntMarker += Charleston_Hgts.length; map.addOverlays(Edisto_Island); centerByArray(Edisto_Island, false, false); cntMarker += Edisto_Island.length; map.addOverlays(James_Island); centerByArray(James_Island, false, false); cntMarker += James_Island.length; map.addOverlays(Johns_Island); centerByArray(Johns_Island, false, false); cntMarker += Johns_Island.length; map.addOverlays(Ladson); centerByArray(Ladson, false, false); cntMarker += Ladson.length; map.addOverlays(Mcclellanville); centerByArray(Mcclellanville, false, false); cntMarker += Mcclellanville.length; map.addOverlays(Mcclelleanville); centerByArray(Mcclelleanville, false, false); cntMarker += Mcclelleanville.length; map.addOverlays(Mount_Pleasant); centerByArray(Mount_Pleasant, false, false); cntMarker += Mount_Pleasant.length; map.addOverlays(Mt_Pleasant); centerByArray(Mt_Pleasant, false, false); cntMarker += Mt_Pleasant.length; map.addOverlays(N_Charleston); centerByArray(N_Charleston, false, false); cntMarker += N_Charleston.length; map.addOverlays(No_Charleston); centerByArray(No_Charleston, false, false); cntMarker += No_Charleston.length; map.addOverlays(North_Charleston); centerByArray(North_Charleston, false, false); cntMarker += North_Charleston.length; map.addOverlays(Ravenel); centerByArray(Ravenel, false, false); cntMarker += Ravenel.length; map.addOverlays(Sullivans_Is); centerByArray(Sullivans_Is, false, false); cntMarker += Sullivans_Is.length; map.addOverlays(Wadamalaw_Isl); centerByArray(Wadamalaw_Isl, false, false); cntMarker += Wadamalaw_Isl.length; map.addOverlays(Yonges_Island); centerByArray(Yonges_Island, false, false); cntMarker += Yonges_Island.length; centerByArray(N_Charleston,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'); } }