function addMarkers() { mySelect = document.getElementById('selection'); Syracuse = [];Syracuse[Syracuse.length] = createMarker(new GPoint(-76.14418030,43.03566742),"
Applied Sci Magnet At M L K Community School
416 E. Raynor Ave.
Syracuse, NY 13202

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Applied Sci Magnet At M L K Community School",'Syracuse=' + Syracuse.length); Syracuse[Syracuse.length] = createMarker(new GPoint(-76.15037537,43.02982330),"
Beard School
220 W Kennedy St
Syracuse, NY 13205

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Beard School",'Syracuse=' + Syracuse.length); Syracuse[Syracuse.length] = createMarker(new GPoint(-76.17235565,43.03023529),"
Bellevue Elementary School
530 Stolp Avenue
Syracuse, NY 13207

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Bellevue Elementary School",'Syracuse=' + Syracuse.length); Syracuse[Syracuse.length] = createMarker(new GPoint(-76.16481018,43.04506683),"
Blodgett Elementary School
312 Oswego Street
Syracuse, NY 13204

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Blodgett Elementary School",'Syracuse=' + Syracuse.length); Syracuse[Syracuse.length] = createMarker(new GPoint(-76.09624481,43.09959030),"
Boces Onondaga-cortland-madison Elementary School
P.o. Box 475
Syracuse, NY 13221

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Boces Onondaga-cortland-madison Elementary School",'Syracuse=' + Syracuse.length); Syracuse[Syracuse.length] = createMarker(new GPoint(-76.18118286,43.03388214),"
Catholic Charities Of Syracuse
1654 W Onondaga St
Syracuse, NY 13204

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Catholic Charities Of Syracuse",'Syracuse=' + Syracuse.length); Syracuse[Syracuse.length] = createMarker(new GPoint(-76.14367676,43.04761887),"
Central Ny Charter School For Math &
601 East Genesee Street
Syracuse, NY 13202

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Central Ny Charter School For Math &",'Syracuse=' + Syracuse.length); Syracuse[Syracuse.length] = createMarker(new GPoint(-76.21154785,43.04486465),"
Cherry Road Elementary School
201 Cherry Rd
Syracuse, NY 13219

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Cherry Road Elementary School",'Syracuse=' + Syracuse.length); Syracuse[Syracuse.length] = createMarker(new GPoint(-76.14340210,43.00920105),"
Clary Math/science Magnet Middle School
100 Amidon Drive
Syracuse, NY 13205

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Clary Math/science Magnet Middle School",'Syracuse=' + Syracuse.length); Syracuse[Syracuse.length] = createMarker(new GPoint(-76.17405701,43.01950455),"
Corcoran High School
919 Glenwood Avenue
Syracuse, NY 13207

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Corcoran High School",'Syracuse=' + Syracuse.length); Syracuse[Syracuse.length] = createMarker(new GPoint(-76.14957428,43.01994324),"
Danforth Magnet Elementary School
309 West Brighton Avenue
Syracuse, NY 13205

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Danforth Magnet Elementary School",'Syracuse=' + Syracuse.length); Syracuse[Syracuse.length] = createMarker(new GPoint(-76.17274475,43.03916550),"
Delaware Elementary School
900 South Geddes Street
Syracuse, NY 13204

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Delaware Elementary School",'Syracuse=' + Syracuse.length); Syracuse[Syracuse.length] = createMarker(new GPoint(-76.13324738,43.05536652),"
Dr. Edwin E. Weeks Elementary School
710 Hawley Avenue
Syracuse, NY 13203

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Dr. Edwin E. Weeks Elementary School",'Syracuse=' + Syracuse.length); Syracuse[Syracuse.length] = createMarker(new GPoint(-76.12242889,43.03026199),"
Edward Smith Elementary School
1106 Lancaster Avenue
Syracuse, NY 13210

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Edward Smith Elementary School",'Syracuse=' + Syracuse.length); Syracuse[Syracuse.length] = createMarker(new GPoint(-76.09848022,43.04690170),"
Elmcrest Childrens Ctr/girls Campus
960 Salt Springs Rd
Syracuse, NY 13224

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Elmcrest Childrens Ctr/girls Campus",'Syracuse=' + Syracuse.length); Syracuse[Syracuse.length] = createMarker(new GPoint(-76.15972900,43.02042389),"
Elmwood Elementary School
1728 South Avenue
Syracuse, NY 13207

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Elmwood Elementary School",'Syracuse=' + Syracuse.length); Syracuse[Syracuse.length] = createMarker(new GPoint(-76.14333344,42.99676514),"
Frank G. Mccarthy School
4942 S Salina St
Syracuse, NY 13205

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Frank G. Mccarthy School",'Syracuse=' + Syracuse.length); Syracuse[Syracuse.length] = createMarker(new GPoint(-76.14665222,43.06252670),"
Franklin Magnet School - Arts & Musi
428 South Alvord Street
Syracuse, NY 13208

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Franklin Magnet School - Arts & Musi",'Syracuse=' + Syracuse.length); Syracuse[Syracuse.length] = createMarker(new GPoint(-76.17295074,43.05206680),"
Frazer School
741 Park Avenue
Syracuse, NY 13204

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Frazer School",'Syracuse=' + Syracuse.length); Syracuse[Syracuse.length] = createMarker(new GPoint(-76.14735413,43.00502777),"
Friendship House
3624 Midland Ave
Syracuse, NY 13205

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Friendship House",'Syracuse=' + Syracuse.length); Syracuse[Syracuse.length] = createMarker(new GPoint(-76.17433167,43.04408646),"
George Fowler High School
227 Magnolia Street
Syracuse, NY 13204

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("George Fowler High School",'Syracuse=' + Syracuse.length); Syracuse[Syracuse.length] = createMarker(new GPoint(-76.14938354,43.07405472),"
Grant Middle School
2400 Grant Boulevard
Syracuse, NY 13208

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Grant Middle School",'Syracuse=' + Syracuse.length); Syracuse[Syracuse.length] = createMarker(new GPoint(-76.09564209,43.04762650),"
H.w. Smith Elementary School
1130 Salt Springs Road
Syracuse, NY 13224

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("H.w. Smith Elementary School",'Syracuse=' + Syracuse.length); Syracuse[Syracuse.length] = createMarker(new GPoint(-76.12004852,43.05876541),"
Henninger High School
600 Robinson Street
Syracuse, NY 13206

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Henninger High School",'Syracuse=' + Syracuse.length); Syracuse[Syracuse.length] = createMarker(new GPoint(-76.18458557,43.01140976),"
Hillbrook Detention Home
4949 Velasko
Syracuse, NY 13215

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Hillbrook Detention Home",'Syracuse=' + Syracuse.length); Syracuse[Syracuse.length] = createMarker(new GPoint(-76.13468933,43.02396774),"
Hughes Academy Magnet School
345 Jamesville Avenue
Syracuse, NY 13210

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Hughes Academy Magnet School",'Syracuse=' + Syracuse.length); Syracuse[Syracuse.length] = createMarker(new GPoint(-76.11094666,43.06166458),"
Huntington School
400 Sunnycrest Road
Syracuse, NY 13206

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Huntington School",'Syracuse=' + Syracuse.length); Syracuse[Syracuse.length] = createMarker(new GPoint(-76.14018250,43.04553604),"
Hutchings Child & Youth Svcs
645 Madison Street
Syracuse, NY 13210

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Hutchings Child & Youth Svcs",'Syracuse=' + Syracuse.length); Syracuse[Syracuse.length] = createMarker(new GPoint(-76.17533875,43.03181076),"
James A. Shea Middle School
1607 South Geddes Street
Syracuse, NY 13207

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("James A. Shea Middle School",'Syracuse=' + Syracuse.length); Syracuse[Syracuse.length] = createMarker(new GPoint(-76.14996338,43.08267975),"
Lemoyne Elementary School
1528 Lemoyne Avenue
Syracuse, NY 13208

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Lemoyne Elementary School",'Syracuse=' + Syracuse.length); Syracuse[Syracuse.length] = createMarker(new GPoint(-76.12574768,43.06382751),"
Lincoln Middle School
1613 James Street
Syracuse, NY 13203

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Lincoln Middle School",'Syracuse=' + Syracuse.length); Syracuse[Syracuse.length] = createMarker(new GPoint(-76.13244629,43.08406448),"
Lyncourt School
2709 Court Street
Syracuse, NY 13208

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Lyncourt School",'Syracuse=' + Syracuse.length); Syracuse[Syracuse.length] = createMarker(new GPoint(-76.14313507,43.01780319),"
Mckinley-brighton Magnet Elementary School
141 West Newell Street
Syracuse, NY 13205

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Mckinley-brighton Magnet Elementary School",'Syracuse=' + Syracuse.length); Syracuse[Syracuse.length] = createMarker(new GPoint(-76.14727783,42.98686600),"
Meachem Elementary School
171 Spaulding Avenue
Syracuse, NY 13205

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Meachem Elementary School",'Syracuse=' + Syracuse.length); Syracuse[Syracuse.length] = createMarker(new GPoint(-76.09745789,43.04271698),"
Nottingham High School
3100 East Genesee Street
Syracuse, NY 13224

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Nottingham High School",'Syracuse=' + Syracuse.length); Syracuse[Syracuse.length] = createMarker(new GPoint(-76.14119720,43.04606247),"
Ocdmh Day Treatment Prog For Chldrn
520 Cedar St
Syracuse, NY 13210

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Ocdmh Day Treatment Prog For Chldrn",'Syracuse=' + Syracuse.length); Syracuse[Syracuse.length] = createMarker(new GPoint(-76.18137360,43.00650787),"
Onondaga Hill Middle School
4860 Onondaga Rd
Syracuse, NY 13215

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Onondaga Hill Middle School",'Syracuse=' + Syracuse.length); Syracuse[Syracuse.length] = createMarker(new GPoint(-76.23443604,43.04124832),"
Onondaga Road Elementary School
703 Onondaga Road
Syracuse, NY 13219

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Onondaga Road Elementary School",'Syracuse=' + Syracuse.length); Syracuse[Syracuse.length] = createMarker(new GPoint(-76.18764496,43.05346680),"
Porter School Of Technical & Career Explo
512 Emerson Avenue
Syracuse, NY 13204

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Porter School Of Technical & Career Explo",'Syracuse=' + Syracuse.length); Syracuse[Syracuse.length] = createMarker(new GPoint(-76.16481018,43.04506683),"
Prekindergarten Prog
220 W Kennedy St
Syracuse, NY 13205

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Prekindergarten Prog",'Syracuse=' + Syracuse.length); Syracuse[Syracuse.length] = createMarker(new GPoint(-76.17063141,43.01965332),"
Roberts School
715 Glenwood Avenue
Syracuse, NY 13207

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Roberts School",'Syracuse=' + Syracuse.length); Syracuse[Syracuse.length] = createMarker(new GPoint(-76.14754486,43.10076523),"
Roxboro Road Elementary School
200 Bernard Street
Syracuse, NY 13211

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Roxboro Road Elementary School",'Syracuse=' + Syracuse.length); Syracuse[Syracuse.length] = createMarker(new GPoint(-76.14870453,43.10061646),"
Roxboro Road Middle School
300 Bernard Street
Syracuse, NY 13211

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Roxboro Road Middle School",'Syracuse=' + Syracuse.length); Syracuse[Syracuse.length] = createMarker(new GPoint(-76.12754822,43.07024765),"
Salem Hyde Elementary School
450 Durston Avenue
Syracuse, NY 13203

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Salem Hyde Elementary School",'Syracuse=' + Syracuse.length); Syracuse[Syracuse.length] = createMarker(new GPoint(-76.15786743,43.04175949),"
Seymour Magnet School - Intntl Human
108 Shonnard Street
Syracuse, NY 13204

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Seymour Magnet School - Intntl Human",'Syracuse=' + Syracuse.length); Syracuse[Syracuse.length] = createMarker(new GPoint(-76.10614777,43.04586411),"
Solace Elementary School
101 East Avenue
Syracuse, NY 13224

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Solace Elementary School",'Syracuse=' + Syracuse.length); Syracuse[Syracuse.length] = createMarker(new GPoint(-76.14734650,43.04813004),"
Southside Academy Charter School
800 South Wilbur Ave-bldg 1c
Syracuse, NY 13204

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Southside Academy Charter School",'Syracuse=' + Syracuse.length); Syracuse[Syracuse.length] = createMarker(new GPoint(-76.17320251,43.05329895),"
Syracuse Acad-sci Charter School
1001 Park Ave
Syracuse, NY 13219

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Syracuse Acad-sci Charter School",'Syracuse=' + Syracuse.length); Syracuse[Syracuse.length] = createMarker(new GPoint(-76.11583710,43.04517746),"
T. Aaron Levy Middle School
111 Fellows Avenue
Syracuse, NY 13210

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("T. Aaron Levy Middle School",'Syracuse=' + Syracuse.length); Syracuse[Syracuse.length] = createMarker(new GPoint(-76.14539337,43.07911682),"
Umr Group Home
1611 Court St
Syracuse, NY 13208

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Umr Group Home",'Syracuse=' + Syracuse.length); Syracuse[Syracuse.length] = createMarker(new GPoint(-76.15354919,43.00686646),"
Van Duyn Elementary School
401 Loomis Avenue
Syracuse, NY 13207

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Van Duyn Elementary School",'Syracuse=' + Syracuse.length); Syracuse[Syracuse.length] = createMarker(new GPoint(-76.22274780,43.04216766),"
Walberta Park Primary School
400 Walberta Rd
Syracuse, NY 13219

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Walberta Park Primary School",'Syracuse=' + Syracuse.length); Syracuse[Syracuse.length] = createMarker(new GPoint(-76.13944244,43.07516479),"
Webster Elementary School
500 Wadsworth Street
Syracuse, NY 13208

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Webster Elementary School",'Syracuse=' + Syracuse.length); Syracuse[Syracuse.length] = createMarker(new GPoint(-76.20178223,43.02911758),"
Westhill Senior High School
4501 Onondaga Blvd
Syracuse, NY 13219

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Westhill Senior High School",'Syracuse=' + Syracuse.length); maxLng = -76.09564209; maxLat = 43.10076523; minLng = -76.23443604; minLat = 42.98686600; 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(Syracuse); 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(Syracuse);map.removeOverlays(Syracuse); map.addOverlays(Syracuse); centerByArray(Syracuse, false, false); cntMarker += Syracuse.length; centerByArray(Syracuse,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'); } }