function addMarkers() { mySelect = document.getElementById('selection'); Toledo = [];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); 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); 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); 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); 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); 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); 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); 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); 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); 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); 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); 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); 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); 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); Toledo[Toledo.length] = createMarker(new GPoint(-83.52828217,41.67406464),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Spring Elementary School",'Toledo=' + Toledo.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); 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); Toledo[Toledo.length] = createMarker(new GPoint(-83.62386322,41.71948242),"",iconRd); mySelect.options[mySelect.options.length] = new Option("Trilby Elementary School",'Toledo=' + Toledo.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); 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); 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); 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); maxLng = -83.40570068; maxLat = 41.72602081; minLng = -83.72338104; minLat = 41.58656693; reCenterMap(); } // End addStateMarkers JavaScript Function // Takes an array of markers and centers/zooms map based on marker range function centerByArray(myArray, recenter, newMaxMin) { if (newMaxMin == true) reMaxMin(myArray); for (var i = 0; i < myArray.length; i++) { var markLng = myArray[i].getPoint().x; var markLat = myArray[i].getPoint().y; if (markLat > maxLat) maxLat = markLat; if (markLng > maxLng) maxLng = markLng; if (markLat < minLat) minLat = markLat; if (markLng < minLng) minLng = markLng; } if (recenter) reCenterMap(); } // Reinit max/mins function reMaxMin(myArray) { maxLng = myArray[0].getPoint().x; maxLat = myArray[0].getPoint().y; minLng = myArray[0].getPoint().x; minLat = myArray[0].getPoint().y; } // Recenter map based on global max/mins function reCenterMap() { var bounds = new GLatLngBounds(); bounds.extend(new GLatLng(minLat, minLng)); bounds.extend(new GLatLng(maxLat, maxLng)); var center_lat = (bounds.getNorthEast().lat() + bounds.getSouthWest().lat()) / 2.0; var center_lng = (bounds.getNorthEast().lng() + bounds.getSouthWest().lng()) / 2.0; var center = new GLatLng(center_lat, center_lng); var zoom = map.getBoundsZoomLevel(bounds); map.setCenter(center,zoom); //map.setCenter(center,10); /* var center = new GPoint( (maxLng + minLng)/2, (maxLat+minLat)/2 ); var delta = new GSize(maxLng - minLng, maxLat - minLat); var minZoom = map.spec.getLowestZoomLevel(center, delta, map.viewSize); if (minZoom < 4) minZoom = 4; // Lowest possible zoom is 4 map.centerAndZoom(center, minZoom); */ } // Fires when drop down list of schools changes function selectChange(selection) { var myVal = selection.options[selection.selectedIndex].value; map.closeInfoWindow(); // Add entire array based on variable type if (myVal.indexOf('all') != -1 && myVal != 'all') { var temp = myVal.split('='); var showArray = temp[1]; // If Array is > X amount of markers, then open in a new page if (eval(showArray).length > 20) // New window depends on whether or not we're on the search page if (location.href.indexOf('nearby_schools.php') == -1) window.open(location.href + '/map/' + showArray); else window.open('/search////' + showArray); map.removeOverlays(Toledo); 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(Toledo); map.addOverlays(Toledo); centerByArray(Toledo, false, false); cntMarker += Toledo.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'); } }