function addMarkers() { mySelect = document.getElementById('selection'); Toledo = [];Whitehouse = [];Oregon = [];Holland = [];Maumee = [];Sylvania = [];Curtice = [];Monclova = [];Swanton = [];Waterville = [];mySelect.options[mySelect.options.length] = new Option("Curtice schools",'all=Curtice'); mySelect.options[mySelect.options.length] = new Option("Holland schools",'all=Holland'); mySelect.options[mySelect.options.length] = new Option("Maumee schools",'all=Maumee'); mySelect.options[mySelect.options.length] = new Option("Monclova schools",'all=Monclova'); mySelect.options[mySelect.options.length] = new Option("Oregon schools",'all=Oregon'); mySelect.options[mySelect.options.length] = new Option("Swanton schools",'all=Swanton'); mySelect.options[mySelect.options.length] = new Option("Sylvania schools",'all=Sylvania'); mySelect.options[mySelect.options.length] = new Option("Toledo schools",'all=Toledo'); mySelect.options[mySelect.options.length] = new Option("Waterville schools",'all=Waterville'); mySelect.options[mySelect.options.length] = new Option("Whitehouse schools",'all=Whitehouse'); mySelect.options[mySelect.options.length] = new Option("---------------------------",''); Toledo[Toledo.length] = createMarker(new GPoint(-83.57910919,41.65213776),"
",iconRd); mySelect.options[mySelect.options.length] = new Option("Academy Of Business & Technical",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.54705811,41.65335464),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Alliance Academy Of Toledo",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.63865662,41.71856308),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Alternate Learning Center",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.68491364,41.58656693),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Alternative Education Academy",'Toledo=' + Toledo.length); Whitehouse[Whitehouse.length] = createMarker(new GPoint(-83.78125763,41.53225327),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Anthony Wayne High School",'Whitehouse=' + Whitehouse.length); Whitehouse[Whitehouse.length] = createMarker(new GPoint(-83.78081512,41.53099060),"",iconBl); mySelect.options[mySelect.options.length] = new Option("Anthony Wayne Junior High School",'Whitehouse=' + Whitehouse.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.58598328,41.62726212),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Arlington Elementary School",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.52730560,41.64064026),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Aurora Academy",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.68673706,41.61179733),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Autism Academy Of Learning",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.55658700,41.71021200),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Bennett Venture Academy",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.61069400,41.59425100),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Beverly Elementary School",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.49569702,41.66267014),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Birmingham Elementary School",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.58901215,41.68204880),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Bond Hill Academy Elementary School",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.60899353,41.60190582),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Bowsher High School",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.54255676,41.65195847),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Brigadoon Academy Community School",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.60245514,41.63073730),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Burroughs Elementary School",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.62953186,41.61236191),"",iconBl); mySelect.options[mySelect.options.length] = new Option("Byrnedale Junior High School",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.64801025,41.63814926),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Carl T Cotter",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.72175598,41.67400360),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Central Elementary School",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.49276733,41.68421555),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Chase Elementary School",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.55426025,41.68319321),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Cherry Elementary School",'Toledo=' + Toledo.length); Oregon[Oregon.length] = createMarker(new GPoint(-83.41255188,41.65259552),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Clay High School",'Oregon=' + Oregon.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.55535889,41.66556931),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Collingwood Building",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.55535889,41.66556931),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Collingwood Center",'Toledo=' + Toledo.length); Oregon[Oregon.length] = createMarker(new GPoint(-83.48570251,41.62915802),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Coy Elementary School",'Oregon=' + Oregon.length); Holland[Holland.length] = createMarker(new GPoint(-83.76220703,41.61034012),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Crissey Elementary School",'Holland=' + Holland.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.63542938,41.60548782),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Crossgates Elementary School",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.55678558,41.71286011),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Cummings-zucker High School",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.60759735,41.69223785),"",iconBl); mySelect.options[mySelect.options.length] = new Option("Deveaux Junior High School",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.72338104,41.65023041),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Dorr Street Elementary School",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.54705811,41.65335464),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Eagle Academy",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.51777649,41.63633728),"",iconRd); mySelect.options[mySelect.options.length] = new Option("East Side Central Elementary School",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.50856781,41.64988708),"",iconBl); mySelect.options[mySelect.options.length] = new Option("East Toledo Junior High School",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.47018433,41.72093964),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Edgewater Elementary School",'Toledo=' + Toledo.length); Oregon[Oregon.length] = createMarker(new GPoint(-83.37042999,41.65888214),"",iconBl); mySelect.options[mySelect.options.length] = new Option("Eisenhower Middle School",'Oregon=' + Oregon.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.55942535,41.65483856),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Ella P. Stewart Academy For Girls",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.61551666,41.69961548),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Elmhurst Elementary School",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.57029724,41.66283798),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Englewood Peace Academy",'Toledo=' + Toledo.length); Maumee[Maumee.length] = createMarker(new GPoint(-83.65027618,41.57950974),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Fairfield Elementary School",'Maumee=' + Maumee.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.68110657,41.65603256),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Fall Meyer Elementary School",'Toledo=' + Toledo.length); Whitehouse[Whitehouse.length] = createMarker(new GPoint(-83.78081512,41.52942657),"",iconBl); mySelect.options[mySelect.options.length] = new Option("Fallen Timbers Middle School",'Whitehouse=' + Whitehouse.length); Oregon[Oregon.length] = createMarker(new GPoint(-83.47583008,41.64405060),"",iconBl); mySelect.options[mySelect.options.length] = new Option("Fassett Middle School",'Oregon=' + Oregon.length); Maumee[Maumee.length] = createMarker(new GPoint(-83.62459564,41.57484436),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Fort Miami Elementary School",'Maumee=' + Maumee.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.52456665,41.64436722),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Franklin Elementary School",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.55170441,41.67186356),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Fulton Elementary School",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.51467896,41.64870071),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Garfield Elementary School",'Toledo=' + Toledo.length); Maumee[Maumee.length] = createMarker(new GPoint(-83.65443420,41.56835175),"",iconBl); mySelect.options[mySelect.options.length] = new Option("Gateway Middle School",'Maumee=' + Maumee.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.62947083,41.64751053),"",iconRd); mySelect.options[mySelect.options.length] = new Option("George A. Phillips Academy",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.55535889,41.66556931),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Glass City Academy",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.65481567,41.59788513),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Glendale-feilbach Elementary School",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.56201935,41.67594528),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Glenwood Elementary School",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.56192017,41.72398376),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Greenwood Elementary School",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.61771393,41.67973709),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Grove Patterson Academy Elementary School",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.58821869,41.65705490),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Hale Elementary School",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.59203339,41.61216354),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Harvard Elementary School",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.67447662,41.66203690),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Hawkins Elementary School",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.50127411,41.64661789),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Heffner Elementary School",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.61750031,41.71273804),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Hiawatha Elementary School",'Toledo=' + Toledo.length); Sylvania[Sylvania.length] = createMarker(new GPoint(-83.73026276,41.71791077),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Highland Elementary School",'Sylvania=' + Sylvania.length); Sylvania[Sylvania.length] = createMarker(new GPoint(-83.66544342,41.71313858),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Hill View Elementary School",'Sylvania=' + Sylvania.length); Holland[Holland.length] = createMarker(new GPoint(-83.70815277,41.61523438),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Holland Elementary School",'Holland=' + Holland.length); Holland[Holland.length] = createMarker(new GPoint(-83.69905853,41.60256577),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Holloway Elementary School",'Holland=' + Holland.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.53613800,41.65017800),"",iconBl); mySelect.options[mySelect.options.length] = new Option("Horizon Science Academy Toledo",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.66464200,41.62934300),"",iconBl); mySelect.options[mySelect.options.length] = new Option("Horizon Science Academy-springfield",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.59487400,41.64725800),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Imani Learning Academy",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.58938599,41.68185806),"",iconGr); mySelect.options[mySelect.options.length] = new Option("International Studies Center",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.59271240,41.71398926),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Jackman Elementary School",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.61354828,41.71642685),"",iconBl); mySelect.options[mySelect.options.length] = new Option("Jefferson Junior High School",'Toledo=' + Toledo.length); Curtice[Curtice.length] = createMarker(new GPoint(-83.31209564,41.64340973),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Jerusalem Elementary School",'Curtice=' + Curtice.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.55212402,41.63243866),"",iconBl); mySelect.options[mySelect.options.length] = new Option("Jones Junior High School",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.63394165,41.63823700),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Keyser Elementary School",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.56470490,41.65402222),"",iconRd); mySelect.options[mySelect.options.length] = new Option("King Elementary School",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.52803040,41.65999603),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Lagrange Elementary School",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.57977295,41.70399094),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Larchmont Elementary School",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.52302551,41.68715286),"",iconBl); mySelect.options[mySelect.options.length] = new Option("Leverette Junior High School",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.57172000,41.63494000),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Libbey High School",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.50430298,41.67424011),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Life Skills Center Of Toledo",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.63143158,41.66783905),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Lincoln Academy For Boys",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.57507324,41.65750122),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Lincoln Elementary School",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.58467865,41.69417572),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Longfellow Elementary School",'Toledo=' + Toledo.length); Maumee[Maumee.length] = createMarker(new GPoint(-83.67452240,41.58712769),"",iconGr); mySelect.options[mySelect.options.length] = new Option("M.o.d.e.l. Community School",'Maumee=' + Maumee.length); Sylvania[Sylvania.length] = createMarker(new GPoint(-83.70730591,41.71725082),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Maplewood Elementary School",'Sylvania=' + Sylvania.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.54881287,41.62956238),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Marshall Elementary School",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.63039300,41.64737200),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Maumee Bay Academy",'Toledo=' + Toledo.length); Maumee[Maumee.length] = createMarker(new GPoint(-83.64160919,41.57585144),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Maumee High School",'Maumee=' + Maumee.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.62965393,41.71332169),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Mcgregor Elementary School",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.58989716,41.67766190),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Mckinley Elementary School",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.67699432,41.63872910),"",iconBl); mySelect.options[mySelect.options.length] = new Option("Mctigue Junior High School",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.40570068,41.65283585),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Meadows Choice Community",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.61183167,41.72602081),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Meadowvale Elementary School",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.63533783,41.70396423),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Monac Elementary School",'Toledo=' + Toledo.length); Monclova[Monclova.length] = createMarker(new GPoint(-83.73374176,41.55866241),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Monclova Elementary School",'Monclova=' + Monclova.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.62618256,41.64936066),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Mt Vernon Elementary School",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.52490234,41.63596344),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Navarre Elementary School",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.56640300,41.62584500),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Newbury Elementary School",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.51499176,41.62140274),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Oakdale Elementary School",'Toledo=' + Toledo.length); Maumee[Maumee.length] = createMarker(new GPoint(-83.67610931,41.58831787),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Ohio Virtual Academy",'Maumee=' + Maumee.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.61171722,41.66697311),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Old Orchard Elementary School",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.55398560,41.67897797),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Old West End Academy Elementary School",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.62965393,41.66664505),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Ottawa Hills Elementary School",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.63261414,41.67014313),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Ottawa Hills High School",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.48658752,41.70955658),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Ottawa River Elementary School",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.54357147,41.65612411),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Paul Laurence Dunbar Academy",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.66461182,41.62982178),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Performing Arts School Of Tol",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.53541565,41.68616486),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Phoenix Academy Community School",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.57093048,41.64653778),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Pickett Elementary School",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.53541565,41.68616486),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Polly Fox Academy Community School",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.51055145,41.63993835),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Raymer Elementary School",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.65905762,41.62014771),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Reynolds Elementary School",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.50743866,41.67309570),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Riverside Elementary School",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.56960297,41.66136169),"",iconBl); mySelect.options[mySelect.options.length] = new Option("Robinson Junior High School",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.67409515,41.64583969),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Rogers High School",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.55502319,41.66854858),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Scott High School",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.53870392,41.66576385),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Sherman Elementary School",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.49647522,41.72092438),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Shoreland Elementary School",'Toledo=' + Toledo.length); Oregon[Oregon.length] = createMarker(new GPoint(-83.43022919,41.65241623),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Shuer Center",'Oregon=' + Oregon.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.52828217,41.67406464),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Spring Elementary School",'Toledo=' + Toledo.length); Holland[Holland.length] = createMarker(new GPoint(-83.72720337,41.62350082),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Springfield High School",'Holland=' + Holland.length); Holland[Holland.length] = createMarker(new GPoint(-83.70815277,41.61523438),"",iconBl); mySelect.options[mySelect.options.length] = new Option("Springfield Middle School",'Holland=' + Holland.length); Oregon[Oregon.length] = createMarker(new GPoint(-83.47132874,41.64405060),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Starr Elementary School",'Oregon=' + Oregon.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.59452057,41.69890213),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Start High School",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.56061554,41.64926147),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Stewart Elementary School",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.68346405,41.68833160),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Stranahan Elementary School",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.55997900,41.70404500),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Summit Academy Toledo",'Toledo=' + Toledo.length); Sylvania[Sylvania.length] = createMarker(new GPoint(-83.70046997,41.70269775),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Sylvan Elementary School",'Sylvania=' + Sylvania.length); Sylvania[Sylvania.length] = createMarker(new GPoint(-83.66541290,41.71196747),"",iconBl); mySelect.options[mySelect.options.length] = new Option("Sylvania Arbor Hills Junior High School",'Sylvania=' + Sylvania.length); Sylvania[Sylvania.length] = createMarker(new GPoint(-83.70341492,41.69432068),"",iconBl); mySelect.options[mySelect.options.length] = new Option("Sylvania Mccord Junior High School",'Sylvania=' + Sylvania.length); Sylvania[Sylvania.length] = createMarker(new GPoint(-83.70953369,41.71181488),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Sylvania Northview High School",'Sylvania=' + Sylvania.length); Sylvania[Sylvania.length] = createMarker(new GPoint(-83.71696472,41.68890381),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Sylvania Southview High School",'Sylvania=' + Sylvania.length); Sylvania[Sylvania.length] = createMarker(new GPoint(-83.75921631,41.68793869),"",iconBl); mySelect.options[mySelect.options.length] = new Option("Sylvania Timberstone Junior High School",'Sylvania=' + Sylvania.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.55266571,41.64213943),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Toledo Academy Of Learning",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.54705811,41.65335464),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Toledo Accelerated Academy",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.53614807,41.65014648),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Toledo School For Arts",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.54895782,41.65269852),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Toledo School Of P N",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.58938599,41.68185806),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Toledo Technology Academy",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.54357147,41.65612411),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Toledo Village Shule Communit Elementary School",'Toledo=' + Toledo.length); Swanton[Swanton.length] = createMarker(new GPoint(-83.83095551,41.58626175),"",iconBl); mySelect.options[mySelect.options.length] = new Option("Township Elementary School",'Swanton=' + Swanton.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.62386322,41.71948242),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Trilby Elementary School",'Toledo=' + Toledo.length); Maumee[Maumee.length] = createMarker(new GPoint(-83.65259552,41.56086349),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Union Elementary School",'Maumee=' + Maumee.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.54705811,41.65335464),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Vanceboro-farm Life Elementary School",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.62167358,41.64536285),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Victory Learning Center",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.51840210,41.64843369),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Waite High School",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.57101440,41.63251114),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Walbridge Elementary School",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.54740143,41.66053772),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Warren Elementary School",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.55545044,41.65393829),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Washington Elementary School",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.61366272,41.71911240),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Washington Junior High School",'Toledo=' + Toledo.length); Waterville[Waterville.length] = createMarker(new GPoint(-83.71711731,41.49906158),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Waterville Center",'Waterville=' + Waterville.length); Waterville[Waterville.length] = createMarker(new GPoint(-83.72848511,41.50972366),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Waterville Primary School",'Waterville=' + Waterville.length); Maumee[Maumee.length] = createMarker(new GPoint(-83.63998413,41.57360077),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Wayne Trail Elementary School",'Maumee=' + Maumee.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.60391998,41.70792007),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Wernert Elementary School",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.55393219,41.63431931),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Westfield Elementary School",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.66478729,41.70172119),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Whiteford Elementary School",'Toledo=' + Toledo.length); Whitehouse[Whitehouse.length] = createMarker(new GPoint(-83.80567932,41.52106094),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Whitehouse Primary School",'Whitehouse=' + Whitehouse.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.60989380,41.71735382),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Whitmer High School",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.54895782,41.65269852),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Whitney Adult",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.56348419,41.69544601),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Whittier Elementary School",'Toledo=' + Toledo.length); Maumee[Maumee.length] = createMarker(new GPoint(-83.68656600,41.61182800),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Wildwood Environmental Academy",'Maumee=' + Maumee.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.64536600,41.63402500),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Winterfield Venture Academy",'Toledo=' + Toledo.length); Toledo[Toledo.length] = createMarker(new GPoint(-83.53121185,41.68046188),"",iconGr); mySelect.options[mySelect.options.length] = new Option("Woodward High School",'Toledo=' + Toledo.length); Oregon[Oregon.length] = createMarker(new GPoint(-83.42400360,41.68888092),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Wynn Elementary School",'Oregon=' + Oregon.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(Curtice); map.removeOverlays(Holland); map.removeOverlays(Maumee); map.removeOverlays(Monclova); map.removeOverlays(Oregon); map.removeOverlays(Swanton); map.removeOverlays(Sylvania); map.removeOverlays(Toledo); map.removeOverlays(Waterville); map.removeOverlays(Whitehouse); 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(Toledo);map.removeOverlays(Curtice); map.removeOverlays(Holland); map.removeOverlays(Maumee); map.removeOverlays(Monclova); map.removeOverlays(Oregon); map.removeOverlays(Swanton); map.removeOverlays(Sylvania); map.removeOverlays(Toledo); map.removeOverlays(Waterville); map.removeOverlays(Whitehouse); map.addOverlays(Curtice); centerByArray(Curtice, false, false); cntMarker += Curtice.length; map.addOverlays(Holland); centerByArray(Holland, false, false); cntMarker += Holland.length; map.addOverlays(Maumee); centerByArray(Maumee, false, false); cntMarker += Maumee.length; map.addOverlays(Monclova); centerByArray(Monclova, false, false); cntMarker += Monclova.length; map.addOverlays(Oregon); centerByArray(Oregon, false, false); cntMarker += Oregon.length; map.addOverlays(Swanton); centerByArray(Swanton, false, false); cntMarker += Swanton.length; map.addOverlays(Sylvania); centerByArray(Sylvania, false, false); cntMarker += Sylvania.length; map.addOverlays(Toledo); centerByArray(Toledo, false, false); cntMarker += Toledo.length; map.addOverlays(Waterville); centerByArray(Waterville, false, false); cntMarker += Waterville.length; map.addOverlays(Whitehouse); centerByArray(Whitehouse, false, false); cntMarker += Whitehouse.length; centerByArray(Toledo,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'); } }