function addMarkers(){ mySelect = document.getElementById('selection'); Arlington_Heights = [];Abbott_Park = [];Altamont = [];Amboy = [];Aurora = [];Arthur = [];Alsip = [];Alton = [];Addison = [];Antioch = [];Algonquin = [];Assumption = [];Arcola = [];Arenzville = [];mySelect.options[mySelect.options.length] = new Option("Abbott Park schools",'all=Abbott_Park'); mySelect.options[mySelect.options.length] = new Option("Addison schools",'all=Addison'); mySelect.options[mySelect.options.length] = new Option("Algonquin schools",'all=Algonquin'); mySelect.options[mySelect.options.length] = new Option("Alsip schools",'all=Alsip'); mySelect.options[mySelect.options.length] = new Option("Altamont schools",'all=Altamont'); mySelect.options[mySelect.options.length] = new Option("Alton schools",'all=Alton'); mySelect.options[mySelect.options.length] = new Option("Amboy schools",'all=Amboy'); mySelect.options[mySelect.options.length] = new Option("Antioch schools",'all=Antioch'); mySelect.options[mySelect.options.length] = new Option("Arcola schools",'all=Arcola'); mySelect.options[mySelect.options.length] = new Option("Arenzville schools",'all=Arenzville'); mySelect.options[mySelect.options.length] = new Option("Arlington Heights schools",'all=Arlington_Heights'); mySelect.options[mySelect.options.length] = new Option("Arthur schools",'all=Arthur'); mySelect.options[mySelect.options.length] = new Option("Assumption schools",'all=Assumption'); mySelect.options[mySelect.options.length] = new Option("Aurora schools",'all=Aurora'); Arlington_Heights[Arlington_Heights.length] = createMarker(new GPoint(-87.97059200,42.08391500),"
A Mother's Touch
125 N. Dryden
Arlington Heights, IL 60004
Co-ed school, NS-K
[ View School Profile ]
",iconGr); Abbott_Park[Abbott_Park.length] = createMarker(new GPoint(-87.85750600,42.32402100),"
Abbott Child Care Center-ap40
200 Abbott Park Road Dept59z
Abbott Park, IL 60064
Co-ed school, PK-K
[ View School Profile ]
",iconGr); Altamont[Altamont.length] = createMarker(new GPoint(-88.74552200,39.05961800),"
Altamont Lutheran Interparish School
7 S Edwards Street
Altamont, IL 62411
Co-ed school, K-8
[ View School Profile ]
",iconGr); Amboy[Amboy.length] = createMarker(new GPoint(-89.32954700,41.71536600),"
Amboy Baptist Academy
24 North Mason Ave
Amboy, IL 61310
Co-ed school, K-12
[ View School Profile ]
",iconGr); Aurora[Aurora.length] = createMarker(new GPoint(-88.29045900,41.79434900),"
Annunciation Of The Bvm School
1840 Church Road
Aurora, IL 60505
Co-ed school, PK-8
[ View School Profile ]
",iconGr); Aurora[Aurora.length] = createMarker(new GPoint(-88.30295100,41.76146600),"
Archbishop Romero Catholic School
312 High Street
Aurora, IL 60505
Co-ed school, PK-8
[ View School Profile ]
",iconGr); Arlington_Heights[Arlington_Heights.length] = createMarker(new GPoint(-87.98034100,42.07673900),"
Arlington Montessori School
431 Arlington Heights Road
Arlington Heights, IL 60005
Co-ed school, PK-PK
[ View School Profile ]
",iconGr); Arthur[Arthur.length] = createMarker(new GPoint(-88.47596900,39.71748000),"
Arthur Christian School
RR 1 Box 194b
Arthur, IL 61911
Co-ed school, PK-12
[ View School Profile ]
",iconGr); Aurora[Aurora.length] = createMarker(new GPoint(-88.35914200,41.78198500),"
Aurora Central Catholic High School
1255 N Edgelawn Drive
Aurora, IL 60506
Co-ed school, 9-12
[ View School Profile ]
",iconGr); Aurora[Aurora.length] = createMarker(new GPoint(-88.37080900,41.78734900),"
Aurora Christian Schools
2255 Sullivan Road
Aurora, IL 60506
Co-ed school, PK-12
[ View School Profile ]
",iconGr); Aurora[Aurora.length] = createMarker(new GPoint(-88.23917400,41.78172600),"
Aurora Montessori School
3180 N Aurora Road
Aurora, IL 60502
Co-ed school, NS-PK
[ View School Profile ]
",iconGr); Alsip[Alsip.length] = createMarker(new GPoint(-87.74323200,41.68346300),"
Bobbie Noonans Child Care Center
4951 West 115th Street
Alsip, IL 60803
Co-ed school, NS-PK
[ View School Profile ]
",iconGr); Arlington_Heights[Arlington_Heights.length] = createMarker(new GPoint(-87.99951100,42.13709100),"
Bright Horizons At Motorola-arlington Hts
1441 W Shure Drive
Arlington Heights, IL 60004
Co-ed school, NS-PK
[ View School Profile ]
",iconGr); Alton[Alton.length] = createMarker(new GPoint(-90.19393000,38.90427300),"
Catholic Childrens Home
1400 State Street
Alton, IL 62002
Co-ed school, 1-12
[ View School Profile ]
",iconGr); Arlington_Heights[Arlington_Heights.length] = createMarker(new GPoint(-87.98058400,42.12210800),"
Chicago Futabakai Japanese School
2550 N Arlington Heights Road
Arlington Heights, IL 60004
Co-ed school, 1-9
[ View School Profile ]
",iconGr); Arlington_Heights[Arlington_Heights.length] = createMarker(new GPoint(-87.98890300,42.08843700),"
Christian Liberty Academy
502 W Euclid Avenue
Arlington Heights, IL 60004
Co-ed school, PK-12
[ View School Profile ]
",iconGr); Aurora[Aurora.length] = createMarker(new GPoint(-112.05801100,33.49716300),"
Covenant Christian School
550 Redwood Drive
Aurora, IL 60506
Co-ed school, PK-8
[ View School Profile ]
",iconGr); Addison[Addison.length] = createMarker(new GPoint(-88.02237000,41.93671300),"
Driscoll Catholic High School
555 North Lombard Road
Addison, IL 60101
Co-ed school, 9-12
[ View School Profile ]
",iconGr); Antioch[Antioch.length] = createMarker(new GPoint(-88.09220300,42.46793700),"
Faith Evang Lutheran School
1275 Main Street
Antioch, IL 60002
Co-ed school, PK-8
[ View School Profile ]
",iconGr); Algonquin[Algonquin.length] = createMarker(new GPoint(-88.33954700,42.17556900),"
Foundations Montessori School
2651 W Algonquin Road
Algonquin, IL 60102
Co-ed school, PK-6
[ View School Profile ]
",iconGr); Aurora[Aurora.length] = createMarker(new GPoint(-88.32000000,41.76050000),"
Fox River Valley Christian School
Po Box 842
Aurora, IL 60507
Co-ed school, PK-10
[ View School Profile ]
",iconGr); Aurora[Aurora.length] = createMarker(new GPoint(-88.34302100,41.77409700),"
Fox Valley Montessori School
850 N Commonwealth Avenue
Aurora, IL 60506
Co-ed school, PK-6
[ View School Profile ]
",iconGr); Aurora[Aurora.length] = createMarker(new GPoint(-88.33466600,41.75720800),"
Holy Angels Elementary School
720 Kensington Place
Aurora, IL 60506
Co-ed school, PK-8
[ View School Profile ]
",iconGr); Assumption[Assumption.length] = createMarker(new GPoint(-89.04788400,39.52009500),"
Kemmerer Village School
Rr 1 Box 12c
Assumption, IL 62510
Co-ed school, 6-12
[ View School Profile ]
",iconGr); Aurora[Aurora.length] = createMarker(new GPoint(-88.24619600,41.74419400),"
Kindercare Learning Center
745 Long Grove Drive
Aurora, IL 60504
Co-ed school, PK-K
[ View School Profile ]
",iconGr); Algonquin[Algonquin.length] = createMarker(new GPoint(-88.33324800,42.17027200),"
Kindercare Learning Center
501 Rolls Drive
Algonquin, IL 60102
Co-ed school, PK-1
[ View School Profile ]
",iconGr); Aurora[Aurora.length] = createMarker(new GPoint(-88.24013000,41.76352000),"
Kindercare Learning Centers
3044 Weber Drive
Aurora, IL 60502
Co-ed school, PK-K
[ View School Profile ]
",iconGr); Addison[Addison.length] = createMarker(new GPoint(-87.99673000,41.93547000),"
Lutherbrook Academy
329 W Lake Street
Addison, IL 60101
Co-ed school, 3-12
[ View School Profile ]
",iconGr); Aurora[Aurora.length] = createMarker(new GPoint(-88.29283900,41.81188600),"
Marmion Academy
1000 Butterfield Road
Aurora, IL 60502
All-boys school, 9-12
[ View School Profile ]
",iconBl); Alton[Alton.length] = createMarker(new GPoint(-90.15600000,38.91060000),"
Marquette Catholic High School
219 E 4th Street
Alton, IL 62002
Co-ed school, 9-12
[ View School Profile ]
",iconGr); Arlington_Heights[Arlington_Heights.length] = createMarker(new GPoint(-87.94465300,42.02256300),"
Metropolitan Preparatory Schools
2525 E Oakton Street Suite D-47
Arlington Heights, IL 60005
Co-ed school, 1-12
[ View School Profile ]
",iconGr); Arlington_Heights[Arlington_Heights.length] = createMarker(new GPoint(-87.99568700,42.13985200),"
Minee Subee Grand
3523 N Kennicott Avenue
Arlington Heights, IL 60004
Co-ed school, NS-PK
[ View School Profile ]
",iconGr); Alton[Alton.length] = createMarker(new GPoint(-90.14527700,38.90721700),"
Mississippi Valley Christian School
2009 Seminary Street
Alton, IL 62002
Co-ed school, PK-12
[ View School Profile ]
",iconGr); Aurora[Aurora.length] = createMarker(new GPoint(-88.27479800,41.74614100),"
Montessori Children's Garden
2300 Montgomery Road
Aurora, IL 60504
Co-ed school, PK-5
[ View School Profile ]
",iconGr); Aurora[Aurora.length] = createMarker(new GPoint(-88.37060900,41.81523000),"
North Aurora SDA School
940 Mooseheart Rd
Aurora, IL 60506
Co-ed school, K-8
[ View School Profile ]
",iconGr); Arthur[Arthur.length] = createMarker(new GPoint(-88.44652400,39.72456200),"
Northside School
125 East 500 N
Arthur, IL 61911
Co-ed school, 1-8
[ View School Profile ]
",iconGr); Addison[Addison.length] = createMarker(new GPoint(-88.04201500,41.92602500),"
Northwest Academy
301 S Swift Road Ste F
Addison, IL 60101
Co-ed school, 1-12
[ View School Profile ]
",iconGr); Arlington_Heights[Arlington_Heights.length] = createMarker(new GPoint(-87.99158400,42.09174100),"
Northwest Suburban Montessori
800 N Fernandez Ave
Arlington Heights, IL 60004
Co-ed school, NS-PK
[ View School Profile ]
",iconGr); Aurora[Aurora.length] = createMarker(new GPoint(-88.31048500,41.74410000),"
Our Lady Of Good Counsel School
601 Talma Street
Aurora, IL 60505
Co-ed school, PK-8
[ View School Profile ]
",iconGr); Arlington_Heights[Arlington_Heights.length] = createMarker(new GPoint(-87.98798400,42.07655400),"
Our Lady Of The Wayside School
432 S Mitchell Avenue
Arlington Heights, IL 60005
Co-ed school, PK-8
[ View School Profile ]
",iconGr); Arthur[Arthur.length] = createMarker(new GPoint(-88.47250000,39.71030000),"
Plainview Parochial School
Rr 1 Box 172c
Arthur, IL 61911
Co-ed school, 1-8
[ View School Profile ]
",iconGr); Arcola[Arcola.length] = createMarker(new GPoint(-88.34914900,39.69523000),"
Pleasant View School
184 N County Road 300e
Arcola, IL 61910
Co-ed school, 1-12
[ View School Profile ]
",iconGr); Arthur[Arthur.length] = createMarker(new GPoint(-88.43640800,39.75384100),"
Prairie Mennonite School
168 E County Road 700 N
Arthur, IL 61911
Co-ed school, PK-PK
[ View School Profile ]
",iconGr); Aurora[Aurora.length] = createMarker(new GPoint(-88.26814500,41.80984900),"
Prairie View Montessori
2624 Ginger Woods Parkway
Aurora, IL 60502
Co-ed school, NS-PK
[ View School Profile ]
",iconGr); Arthur[Arthur.length] = createMarker(new GPoint(-88.43280600,39.69908800),"
Railside School
Rr 1 Box 139
Arthur, IL 61911
Co-ed school, 1-8
[ View School Profile ]
",iconGr); Aurora[Aurora.length] = createMarker(new GPoint(-88.31632900,41.78202000),"
Resurrection Lutheran School
39w218 N Indian Trail
Aurora, IL 60506
Co-ed school, PK-8
[ View School Profile ]
",iconGr); Aurora[Aurora.length] = createMarker(new GPoint(-88.35911500,41.77525700),"
Rosary High School
901 North Edgelawn Drive
Aurora, IL 60506
All-girls school, 9-12
[ View School Profile ]
",iconRd); Arlington_Heights[Arlington_Heights.length] = createMarker(new GPoint(-87.98021400,42.09231000),"
St. James School
821 N Arlington Heights Road
Arlington Heights, IL 60004
Co-ed school, PK-8
[ View School Profile ]
",iconGr); Aurora[Aurora.length] = createMarker(new GPoint(-88.30168300,41.77173700),"
St. Joseph Catholic School
706 High Street
Aurora, IL 60505
Co-ed school, PK-8
[ View School Profile ]
",iconGr); Addison[Addison.length] = createMarker(new GPoint(-87.98028200,41.92023700),"
St. Joseph School
330 E Fullerton Avenue
Addison, IL 60101
Co-ed school, PK-8
[ View School Profile ]
",iconGr); Algonquin[Algonquin.length] = createMarker(new GPoint(-88.28883200,42.16393600),"
St. Margaret Mary School
119 S Hubbard Street
Algonquin, IL 60102
Co-ed school, PK-8
[ View School Profile ]
",iconGr); Alton[Alton.length] = createMarker(new GPoint(-90.17824800,38.89060000),"
St. Mary School
536 E 3rd Street
Alton, IL 62002
Co-ed school, PK-8
[ View School Profile ]
",iconGr); Arlington_Heights[Arlington_Heights.length] = createMarker(new GPoint(-87.98437700,42.09906300),"
St. Peter Lutheran School
111 W Olive Street
Arlington Heights, IL 60004
Co-ed school, PK-8
[ View School Profile ]
",iconGr); Aurora[Aurora.length] = createMarker(new GPoint(-88.33304200,41.74201400),"
St. Peter School
915 Sard Avenue
Aurora, IL 60506
Co-ed school, K-8
[ View School Profile ]
",iconGr); Aurora[Aurora.length] = createMarker(new GPoint(-88.33265800,41.78048900),"
St. Rita Of Cascia School
770 Old Indian Trail
Aurora, IL 60506
Co-ed school, PK-8
[ View School Profile ]
",iconGr); Arlington_Heights[Arlington_Heights.length] = createMarker(new GPoint(-87.96728300,42.09536300),"
St. Viator High School
1213 E Oakton Street
Arlington Heights, IL 60004
Co-ed school, 9-12
[ View School Profile ]
",iconGr); Arthur[Arthur.length] = createMarker(new GPoint(-88.47630000,39.71010000),"
South Prairie School
18338 N Cr 200e
Arthur, IL 61911
Co-ed school, 1-8
[ View School Profile ]
",iconGr); Alton[Alton.length] = createMarker(new GPoint(-90.19049300,38.89559700),"
Ss Peter & Paul Elementary School
801 State Street
Alton, IL 62002
Co-ed school, K-8
[ View School Profile ]
",iconGr); Arlington_Heights[Arlington_Heights.length] = createMarker(new GPoint(-87.98061600,42.09222400),"
St James School
820 N Arlington Heights Road
Arlington Heights, IL 60004
Co-ed school, PK-8
[ View School Profile ]
",iconGr); Algonquin[Algonquin.length] = createMarker(new GPoint(-88.29506100,42.16609100),"
St Johns Lutheran School
300 Jefferson Street
Algonquin, IL 60102
Co-ed school, PK-8
[ View School Profile ]
",iconGr); Aurora[Aurora.length] = createMarker(new GPoint(-88.36227900,41.76194200),"
St Mark's Child Development Center
1995 W Downer Place
Aurora, IL 60506
Co-ed school, NS-PK
[ View School Profile ]
",iconGr); Aurora[Aurora.length] = createMarker(new GPoint(-88.30577000,41.75073700),"
St Pauls Lutheran School
550 2nd Avenue
Aurora, IL 60505
Co-ed school, PK-8
[ View School Profile ]
",iconGr); Antioch[Antioch.length] = createMarker(new GPoint(-88.10317600,42.47727900),"
St Peter Elementary School
900 Saint Peter Street
Antioch, IL 60002
Co-ed school, PK-8
[ View School Profile ]
",iconGr); Addison[Addison.length] = createMarker(new GPoint(-88.01806100,41.93926300),"
St Philip The Apostle School
1233 W Holtz Avenue
Addison, IL 60101
Co-ed school, PK-8
[ View School Profile ]
",iconGr); Aurora[Aurora.length] = createMarker(new GPoint(-88.28134600,41.75980700),"
St Therese Of Jesus
255 N Farnsworth Avenue
Aurora, IL 60505
Co-ed school, PK-8
[ View School Profile ]
",iconGr); Alton[Alton.length] = createMarker(new GPoint(-90.15172700,38.93000100),"
Toddle Towne Learning Center
3839 Humbert Road
Alton, IL 62002
Co-ed school, NS-PK
[ View School Profile ]
",iconGr); Arenzville[Arenzville.length] = createMarker(new GPoint(-90.37012000,39.87724000),"
Trinity Lutheran School
Po Box 118 Frederick Street
Arenzville, IL 62611
Co-ed school, PK-6
[ View School Profile ]
",iconGr); Alton[Alton.length] = createMarker(new GPoint(-90.09859000,38.86543000),"
Westminster Christian Academy-river Bend
1145 College Avenue
Alton, IL 62002
Co-ed school, K-12
[ View School Profile ]
",iconGr); } // 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,11); /* 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(Abbott_Park); map.removeOverlays(Addison); map.removeOverlays(Algonquin); map.removeOverlays(Alsip); map.removeOverlays(Altamont); map.removeOverlays(Alton); map.removeOverlays(Amboy); map.removeOverlays(Antioch); map.removeOverlays(Arcola); map.removeOverlays(Arenzville); map.removeOverlays(Arlington_Heights); map.removeOverlays(Arthur); map.removeOverlays(Assumption); map.removeOverlays(Aurora); 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(Arlington_Heights);map.removeOverlays(Abbott_Park); map.removeOverlays(Addison); map.removeOverlays(Algonquin); map.removeOverlays(Alsip); map.removeOverlays(Altamont); map.removeOverlays(Alton); map.removeOverlays(Amboy); map.removeOverlays(Antioch); map.removeOverlays(Arcola); map.removeOverlays(Arenzville); map.removeOverlays(Arlington_Heights); map.removeOverlays(Arthur); map.removeOverlays(Assumption); map.removeOverlays(Aurora); map.addOverlays(Abbott_Park); centerByArray(Abbott_Park, false, false); cntMarker += Abbott_Park.length; map.addOverlays(Addison); centerByArray(Addison, false, false); cntMarker += Addison.length; map.addOverlays(Algonquin); centerByArray(Algonquin, false, false); cntMarker += Algonquin.length; map.addOverlays(Alsip); centerByArray(Alsip, false, false); cntMarker += Alsip.length; map.addOverlays(Altamont); centerByArray(Altamont, false, false); cntMarker += Altamont.length; map.addOverlays(Alton); centerByArray(Alton, false, false); cntMarker += Alton.length; map.addOverlays(Amboy); centerByArray(Amboy, false, false); cntMarker += Amboy.length; map.addOverlays(Antioch); centerByArray(Antioch, false, false); cntMarker += Antioch.length; map.addOverlays(Arcola); centerByArray(Arcola, false, false); cntMarker += Arcola.length; map.addOverlays(Arenzville); centerByArray(Arenzville, false, false); cntMarker += Arenzville.length; map.addOverlays(Arlington_Heights); centerByArray(Arlington_Heights, false, false); cntMarker += Arlington_Heights.length; map.addOverlays(Arthur); centerByArray(Arthur, false, false); cntMarker += Arthur.length; map.addOverlays(Assumption); centerByArray(Assumption, false, false); cntMarker += Assumption.length; map.addOverlays(Aurora); centerByArray(Aurora, false, false); cntMarker += Aurora.length; centerByArray(Arlington_Heights,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'); //window.open('/map.php?type=1&schools=&school_level=&radius=&zipcode=&school_type_search=&school_type_code='); } } function createMarker(point, label, icon) { var marker = new GMarker(point, icon); var html = label; GEvent.addListener(marker, "click", function() { marker.openInfoWindowHtml(html); }); return marker; }