function addMarkers() { mySelect = document.getElementById('selection'); Youngstown = [];Youngstown[Youngstown.length] = createMarker(new GPoint(-80.62934875,41.07564163),"
Adams Junior High School
2537 Cooper St
Youngstown, OH 44502

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Adams Junior High School",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.60751900,41.11456800),"
Athena: School Of Excellence For Girls
1061 Lyden Ave
Youngstown, OH 44505

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Athena: School Of Excellence For Girls",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.77067566,41.09983826),"
Austintown Middle School
5800 Mahoning Ave
Youngstown, OH 44515

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Austintown Middle School",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.66407776,41.07410431),"
Bennett Elementary School
2546 Hillman St
Youngstown, OH 44507

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Bennett Elementary School",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.67211914,41.01178741),"
Boardman High School
7777 Glenwood Ave
Youngstown, OH 44512

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Boardman High School",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.66287994,41.02014542),"
Center Middle School
7410 Market St
Youngstown, OH 44512

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Center Middle School",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.69659424,41.09225082),"
Chaney High School
731 S Hazelwood Ave
Youngstown, OH 44509

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Chaney High School",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.64546204,41.10087204),"
Choffin
200 E Wood St
Youngstown, OH 44503

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Choffin",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.64546204,41.10087204),"
Choffin Career & Technical Center
200 E Wood St
Youngstown, OH 44503

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Choffin Career & Technical Center",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.64546204,41.10087204),"
Choffin Practical Nursing
200 E Wood St
Youngstown, OH 44503

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Choffin Practical Nursing",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.67351532,41.07326126),"
Cleveland Elementary School
621 W Princeton Ave
Youngstown, OH 44511

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Cleveland Elementary School",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.72850800,41.11083603),"
Davis Elementary School
4302 Maple Ave
Youngstown, OH 44515

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Davis Elementary School",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.65751648,41.15445328),"
E J Blott Elementary School
4003 Shady Rd
Youngstown, OH 44505

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("E J Blott Elementary School",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.65671539,41.08212280),"
Eagle Heights Academy
1833 Market St
Youngstown, OH 44507

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Eagle Heights Academy",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.62245178,41.10219955),"
East Middle School
1544 E High Ave
Youngstown, OH 44505

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("East Middle School",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.73991394,41.09116745),"
Fitch High School
4560 Falcon Dr
Youngstown, OH 44515

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Fitch High School",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.74378967,41.09626007),"
Frank Ohl Middle School
255 Idaho Rd
Youngstown, OH 44515

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Frank Ohl Middle School",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.67211914,41.01636124),"
Glenwood Middle School
7635 Glenwood Ave
Youngstown, OH 44512

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Glenwood Middle School",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.66632843,41.11865616),"
Harding Elementary School
1903 Cordova Ave
Youngstown, OH 44504

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Harding Elementary School",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.65338135,41.12215424),"
Hayes Middle School
1616 Ford Ave
Youngstown, OH 44504

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Hayes Middle School",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.65906525,41.08783722),"
Hillman Middle School
2546 Hillman St
Youngstown, OH 44507

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Hillman Middle School",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.62177277,41.06541443),"
Jackson Elementary School
767 Mabel St
Youngstown, OH 44502

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Jackson Elementary School",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.64546204,41.10087204),"
John White Learning Center
1387 Commonwealth Ave
Youngstown, OH 44505

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("John White Learning Center",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.63933563,41.10810089),"
Juvenile Justice Center (j High School
300 E Scott St
Youngstown, OH 44505

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Juvenile Justice Center (j High School",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.70051575,41.06836319),"
Kirkmere Elementary School
134 N Hazelwood Ave
Youngstown, OH 44509

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Kirkmere Elementary School",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.65988159,41.08238220),"
Legacy Academy For Leaders & Arts
1812 Oak Hill Ave
Youngstown, OH 44507

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Legacy Academy For Leaders & Arts",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.65750122,41.15476990),"
Liberty High School
1 Leopard Way
Youngstown, OH 44505

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Liberty High School",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.65927124,41.09733582),"
Life Skills Center Of Youngstown
3405 Market St
Youngstown, OH 44507

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Life Skills Center Of Youngstown",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.61588287,41.04478455),"
Lincoln Place
5058 Youngstown Poland Rd
Youngstown, OH 44514

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Lincoln Place",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.77220917,41.10504913),"
Lloyd Elementary School
5705 Norquest Blvd
Youngstown, OH 44515

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Lloyd Elementary School",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.72631836,41.06845856),"
Lynn-kirk Elementary School
4211 Evelyn Rd
Youngstown, OH 44511

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Lynn-kirk Elementary School",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.62934875,41.07564163),"
Mahoning Unlimited Classroom
100 Debartolo Pl Ste 115
Youngstown, OH 44512

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Mahoning Unlimited Classroom",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.66251373,41.04270172),"
Market Street Elementary School
5555 Market St
Youngstown, OH 44512

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Market Street Elementary School",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.66048431,41.11106491),"
Martin Luther King Elementary School
706 Covington St
Youngstown, OH 44510

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Martin Luther King Elementary School",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.59304810,41.09759903),"
Mary Haddow Elementary School
2800 Oak Street Ext
Youngstown, OH 44505

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Mary Haddow Elementary School",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.64640808,41.10129166),"
Mollie Kessler Elementary School
118 E Wood St
Youngstown, OH 44503

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Mollie Kessler Elementary School",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.59407806,41.11223602),"
North Elementary School
2724 Mariner Ave
Youngstown, OH 44505

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("North Elementary School",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.64821800,41.10189900),"
Novanet High School
20 W Wood St
Youngstown, OH 44503

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Novanet High School",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.62349701,41.04819870),"
Paul C Bunn Elementary School
1825 Sequoya Dr
Youngstown, OH 44514

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Paul C Bunn Elementary School",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.64546204,41.10087204),"
Positive Connections High School
200 E Wood St
Youngstown, OH 44503

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Positive Connections High School",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.64871979,41.12643814),"
Rayen High School
250 Benita Ave
Youngstown, OH 44504

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Rayen High School",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.63918304,41.04616165),"
Robinwood Lane Elementary School
835 Indianola Rd
Youngstown, OH 44512

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Robinwood Lane Elementary School",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.66632080,41.06654739),"
Sheridan Elementary School
3321 Hudson Ave
Youngstown, OH 44511

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Sheridan Elementary School",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.66738129,41.01876450),"
Stadium Drive Elementary School
111 Stadium Dr
Youngstown, OH 44512

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Stadium Drive Elementary School",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.65968600,41.08678900),"
Summit Academy Community School - Youngstown
1400 Oak Hill Ave
Youngstown, OH 44507

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Summit Academy Community School - Youngstown",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.65968600,41.08678900),"
Summit Academy Secondary - Youngstown
1400 Oak Hill Ave
Youngstown, OH 44507

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Summit Academy Secondary - Youngstown",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.65988159,41.08666229),"
Summit Academy-youngstown Elementary School
144 N Schenley Ave
Youngstown, OH 44509

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Summit Academy-youngstown Elementary School",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.64330292,41.07896423),"
Taft Elementary School
730 E Avondale Ave
Youngstown, OH 44502

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Taft Elementary School",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.69988251,41.07726288),"
Volney Rogers Junior High School
2400 S Schenley Ave
Youngstown, OH 44511

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Volney Rogers Junior High School",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.74376678,41.09692383),"
Watson Elementary School
215 Idaho Rd
Youngstown, OH 44515

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Watson Elementary School",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.67927551,41.03625488),"
West Boulevard Elementary School
6125 West Blvd
Youngstown, OH 44512

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("West Boulevard Elementary School",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.69788361,41.10429764),"
West Elementary School
310 S Schenley Ave
Youngstown, OH 44509

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("West Elementary School",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.65771484,41.15620804),"
William S Guy Middle School
4115 Shady Rd
Youngstown, OH 44505

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("William S Guy Middle School",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.65505981,41.08645630),"
Williamson Elementary School
58 Williamson Ave
Youngstown, OH 44507

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Williamson Elementary School",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.64271545,41.07225037),"
Wilson High School
2725 Gibson St
Youngstown, OH 44502

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Wilson High School",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.72268677,41.09543610),"
Woodside Elementary School
4105 Elmwood Ave
Youngstown, OH 44515

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Woodside Elementary School",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.62313300,41.09112500),"
Youngstown Academy Of Excellence
1408 Rigby St
Youngstown, OH 44506

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Youngstown Academy Of Excellence",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-80.65814209,41.09030151),"
Youngstown Community Elementary School
50 Essex St
Youngstown, OH 44502

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Youngstown Community Elementary School",'Youngstown=' + Youngstown.length); Youngstown[Youngstown.length] = createMarker(new GPoint(-10.00000000,10.00000000),"
Youngstown Early College
Fedor Hall
Youngstown, OH 44555

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Youngstown Early College",'Youngstown=' + Youngstown.length); maxLng = -10.00000000; maxLat = 41.15620804; minLng = -80.77220917; minLat = 10.00000000; 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(Youngstown); 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(Youngstown);map.removeOverlays(Youngstown); map.addOverlays(Youngstown); centerByArray(Youngstown, false, false); cntMarker += Youngstown.length; centerByArray(Youngstown,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'); } }