function addMarkers(){ mySelect = document.getElementById('selection'); Grand_Rapids = [];Grand_Rapids[Grand_Rapids.length] = createMarker(new GPoint(-85.64498700,43.00324600),"
Blessed Sacrament School
2233 Diamond Avenue Ne
Grand Rapids, MI 49505
Co-ed school, PK-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Blessed Sacrament School",'Grand_Rapids=' + Grand_Rapids.length); Grand_Rapids[Grand_Rapids.length] = createMarker(new GPoint(-85.66675800,42.95671400),"
Catholic Central High School
319 Sheldon Blvd Se
Grand Rapids, MI 49503
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Catholic Central High School",'Grand_Rapids=' + Grand_Rapids.length); Grand_Rapids[Grand_Rapids.length] = createMarker(new GPoint(-85.77866500,42.93904200),"
Covenant Christian High School
1401 Ferndale Avenue Sw
Grand Rapids, MI 49534
Co-ed school, 10-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Covenant Christian High School",'Grand_Rapids=' + Grand_Rapids.length); Grand_Rapids[Grand_Rapids.length] = createMarker(new GPoint(-85.64438500,42.98663700),"
Creston Christian School
1031 Page Street Ne
Grand Rapids, MI 49505
Co-ed school, K-6
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Creston Christian School",'Grand_Rapids=' + Grand_Rapids.length); Grand_Rapids[Grand_Rapids.length] = createMarker(new GPoint(-85.66531700,42.84088400),"
Cutlerville Christian School Pk-8
520 68th Street Se
Grand Rapids, MI 49548
Co-ed school, PK-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Cutlerville Christian School Pk-8",'Grand_Rapids=' + Grand_Rapids.length); Grand_Rapids[Grand_Rapids.length] = createMarker(new GPoint(-85.62159600,42.93234100),"
Eastminster Preschool Center
1700 Woodward Avenue Se
Grand Rapids, MI 49506
Co-ed school, PK-K
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Eastminster Preschool Center",'Grand_Rapids=' + Grand_Rapids.length); Grand_Rapids[Grand_Rapids.length] = createMarker(new GPoint(-85.60090200,42.96986300),"
Eastside Christian School
2792 Michigan Street Ne
Grand Rapids, MI 49506
Co-ed school, K-9
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Eastside Christian School",'Grand_Rapids=' + Grand_Rapids.length); Grand_Rapids[Grand_Rapids.length] = createMarker(new GPoint(-85.64721200,42.91704500),"
Evergreen Christian School
2550 Eastern Avenue Se
Grand Rapids, MI 49507
Co-ed school, PK-6
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Evergreen Christian School",'Grand_Rapids=' + Grand_Rapids.length); Grand_Rapids[Grand_Rapids.length] = createMarker(new GPoint(-85.62350000,42.92337200),"
Grand Rapids Christian High School
2300 Plymouth Avenue Se
Grand Rapids, MI 49506
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Grand Rapids Christian High School",'Grand_Rapids=' + Grand_Rapids.length); Grand_Rapids[Grand_Rapids.length] = createMarker(new GPoint(-85.62674100,42.92924200),"
Grand Rapids Christian Middle School
1875 Rosewood Avenue Se
Grand Rapids, MI 49506
Co-ed school, 7-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Grand Rapids Christian Middle School",'Grand_Rapids=' + Grand_Rapids.length); Grand_Rapids[Grand_Rapids.length] = createMarker(new GPoint(-85.60487500,42.97010100),"
Grand Rapids Hebrew Academy
2615 Michigan Street Ne
Grand Rapids, MI 49506
Co-ed school, 1-6
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Grand Rapids Hebrew Academy",'Grand_Rapids=' + Grand_Rapids.length); Grand_Rapids[Grand_Rapids.length] = createMarker(new GPoint(-85.72724400,42.98469900),"
Grand Rapids Seventh-day Adventist Academy
1151 Oakleigh Road Nw
Grand Rapids, MI 49504
Co-ed school, K-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Grand Rapids Seventh-day Adventist Academy",'Grand_Rapids=' + Grand_Rapids.length); Grand_Rapids[Grand_Rapids.length] = createMarker(new GPoint(-85.72286100,42.97136300),"
Holy Spirit School
2222 Lake Michigan Drive Nw
Grand Rapids, MI 49504
Co-ed school, K-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Holy Spirit School",'Grand_Rapids=' + Grand_Rapids.length); Grand_Rapids[Grand_Rapids.length] = createMarker(new GPoint(-85.77468900,42.93673600),"
Hope Protestant Christian School
1545 Wilson Ave Sw
Grand Rapids, MI 49544
Co-ed school, K-9
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Hope Protestant Christian School",'Grand_Rapids=' + Grand_Rapids.length); Grand_Rapids[Grand_Rapids.length] = createMarker(new GPoint(-85.62394700,42.92797800),"
Immaculate Heart Of Mary School
1951 Plymouth Avenue Se
Grand Rapids, MI 49506
Co-ed school, PK-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Immaculate Heart Of Mary School",'Grand_Rapids=' + Grand_Rapids.length); Grand_Rapids[Grand_Rapids.length] = createMarker(new GPoint(-85.65951100,43.00057300),"
Immanuel-st James Lutheran School Pk-8
2066 Oakwood Avenue Ne
Grand Rapids, MI 49505
Co-ed school, PK-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Immanuel-st James Lutheran School Pk-8",'Grand_Rapids=' + Grand_Rapids.length); Grand_Rapids[Grand_Rapids.length] = createMarker(new GPoint(-85.62674900,42.89466100),"
Kentwood Christian Children's
3765 Kalamazoo Ave. Se
Grand Rapids, MI 49508
Co-ed school, PK-KG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Kentwood Christian Children's",'Grand_Rapids=' + Grand_Rapids.length); Grand_Rapids[Grand_Rapids.length] = createMarker(new GPoint(-85.60782100,42.92704900),"
Lake Michigan Academy
2428 Burton St SE
Grand Rapids, MI 49546
Co-ed school, 1-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Lake Michigan Academy",'Grand_Rapids=' + Grand_Rapids.length); Grand_Rapids[Grand_Rapids.length] = createMarker(new GPoint(-85.65107500,42.84060800),"
Legacy Christian Preschool and Elementary School
520 68th St SE
Grand Rapids, MI 49548
Co-ed school, PK-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Legacy Christian Preschool and Elementary School",'Grand_Rapids=' + Grand_Rapids.length); Grand_Rapids[Grand_Rapids.length] = createMarker(new GPoint(-85.60169800,43.04283700),"
Messiah Lutheran Pre-school
2727 Five Mile Road Ne
Grand Rapids, MI 49505
Co-ed school, PK-K
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Messiah Lutheran Pre-school",'Grand_Rapids=' + Grand_Rapids.length); Grand_Rapids[Grand_Rapids.length] = createMarker(new GPoint(-85.63505200,42.89755600),"
Millbrook Christian School
3662 Poinsettia Avenue Se
Grand Rapids, MI 49508
Co-ed school, PK-6
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Millbrook Christian School",'Grand_Rapids=' + Grand_Rapids.length); Grand_Rapids[Grand_Rapids.length] = createMarker(new GPoint(-85.60159900,42.99894900),"
North Hills Classical Academy
2777 Knapp St Ne
Grand Rapids, MI 49525
Co-ed school, PK-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("North Hills Classical Academy",'Grand_Rapids=' + Grand_Rapids.length); Grand_Rapids[Grand_Rapids.length] = createMarker(new GPoint(-85.65624800,43.01225300),"
NorthPointe Christian Elementary & Pre-School and Middle/High School
540 Russwood NE
Grand Rapids, MI 49505
Co-ed school, PK-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("NorthPointe Christian Elementary & Pre-School and Middle/High School",'Grand_Rapids=' + Grand_Rapids.length); Grand_Rapids[Grand_Rapids.length] = createMarker(new GPoint(-85.65621800,43.01224800),"
Northpointe Elementary & Preschool
540 Russwood Street Ne
Grand Rapids, MI 49505
Co-ed school, PK-6
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Northpointe Elementary & Preschool",'Grand_Rapids=' + Grand_Rapids.length); Grand_Rapids[Grand_Rapids.length] = createMarker(new GPoint(-85.59370800,42.98447100),"
Northpointe Middle/high School
3101 Leonard Street Ne
Grand Rapids, MI 49525
Co-ed school, 7-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Northpointe Middle/high School",'Grand_Rapids=' + Grand_Rapids.length); Grand_Rapids[Grand_Rapids.length] = createMarker(new GPoint(-85.64301200,42.94276300),"
Oakdale Christian School
1050 Fisk Street Se
Grand Rapids, MI 49507
Co-ed school, PK-6
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Oakdale Christian School",'Grand_Rapids=' + Grand_Rapids.length); Grand_Rapids[Grand_Rapids.length] = createMarker(new GPoint(-85.59666600,42.92832700),"
Our Savior Lutheran School
1916 Ridgewood Avenue Se
Grand Rapids, MI 49506
Co-ed school, PK-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Our Savior Lutheran School",'Grand_Rapids=' + Grand_Rapids.length); Grand_Rapids[Grand_Rapids.length] = createMarker(new GPoint(-85.62981100,42.98093900),"
Plymouth Christian Elementary School
1000 Ball Avenue Ne
Grand Rapids, MI 49505
Co-ed school, PK-6
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Plymouth Christian Elementary School",'Grand_Rapids=' + Grand_Rapids.length); Grand_Rapids[Grand_Rapids.length] = createMarker(new GPoint(-85.62538700,42.98035600),"
Plymouth Christian High School
965 Plymouth Avenue Ne
Grand Rapids, MI 49505
Co-ed school, 7-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Plymouth Christian High School",'Grand_Rapids=' + Grand_Rapids.length); Grand_Rapids[Grand_Rapids.length] = createMarker(new GPoint(-85.68702100,42.93699700),"
The Potter's House
810 Van Raalte Dr Sw
Grand Rapids, MI 49509
Co-ed school, PK-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("The Potter's House",'Grand_Rapids=' + Grand_Rapids.length); Grand_Rapids[Grand_Rapids.length] = createMarker(new GPoint(-85.54179700,42.94316800),"
Pyramid Montessori
1118 Emerald Avenue Ne
Grand Rapids, MI 49503
Co-ed school, PK-K
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Pyramid Montessori",'Grand_Rapids=' + Grand_Rapids.length); Grand_Rapids[Grand_Rapids.length] = createMarker(new GPoint(-85.69743600,42.96099300),"
Sacred Heart Of Jesus School
1200 Dayton Street Sw
Grand Rapids, MI 49504
Co-ed school, PK-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Sacred Heart Of Jesus School",'Grand_Rapids=' + Grand_Rapids.length); Grand_Rapids[Grand_Rapids.length] = createMarker(new GPoint(-85.66640000,42.95688300),"
St. Andrew Elementary School
302 Sheldon Blvd Se
Grand Rapids, MI 49503
Co-ed school, K-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("St. Andrew Elementary School",'Grand_Rapids=' + Grand_Rapids.length); Grand_Rapids[Grand_Rapids.length] = createMarker(new GPoint(-85.66202100,42.93182300),"
St. Francis Xavier Elementary School
240 Brown Street Se
Grand Rapids, MI 49507
Co-ed school, PK-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("St. Francis Xavier Elementary School",'Grand_Rapids=' + Grand_Rapids.length); Grand_Rapids[Grand_Rapids.length] = createMarker(new GPoint(-85.62911200,42.94928600),"
St. Stephen School
740 Gladstone Drive Se
Grand Rapids, MI 49506
Co-ed school, PK-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("St. Stephen School",'Grand_Rapids=' + Grand_Rapids.length); Grand_Rapids[Grand_Rapids.length] = createMarker(new GPoint(-85.66769500,42.84066300),"
South Christian High School
160 68th Street Sw
Grand Rapids, MI 49548
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("South Christian High School",'Grand_Rapids=' + Grand_Rapids.length); Grand_Rapids[Grand_Rapids.length] = createMarker(new GPoint(-85.68022200,42.98880900),"
Ss Peter & Paul School
1433 Hamilton Avenue Nw
Grand Rapids, MI 49504
Co-ed school, PK-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Ss Peter & Paul School",'Grand_Rapids=' + Grand_Rapids.length); Grand_Rapids[Grand_Rapids.length] = createMarker(new GPoint(-85.66390600,42.98530200),"
St Alphonsus Elementary School
228 Carrier Street Ne
Grand Rapids, MI 49505
Co-ed school, PK-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("St Alphonsus Elementary School",'Grand_Rapids=' + Grand_Rapids.length); Grand_Rapids[Grand_Rapids.length] = createMarker(new GPoint(-85.73030800,42.99621800),"
St Anthony Of Padua Elementary School
2510 Richmond Street Nw
Grand Rapids, MI 49504
Co-ed school, PK-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("St Anthony Of Padua Elementary School",'Grand_Rapids=' + Grand_Rapids.length); Grand_Rapids[Grand_Rapids.length] = createMarker(new GPoint(-85.64328700,42.97447200),"
St Isidore Catholic Elementary School
625 Spring Avenue Ne
Grand Rapids, MI 49503
Co-ed school, PK-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("St Isidore Catholic Elementary School",'Grand_Rapids=' + Grand_Rapids.length); Grand_Rapids[Grand_Rapids.length] = createMarker(new GPoint(-85.68687500,42.97186300),"
St James Catholic School
750 1st Street Nw
Grand Rapids, MI 49504
Co-ed school, PK-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("St James Catholic School",'Grand_Rapids=' + Grand_Rapids.length); Grand_Rapids[Grand_Rapids.length] = createMarker(new GPoint(-85.64167400,43.02856700),"
St Jude Elementary School
1110 4 Mile Road Ne
Grand Rapids, MI 49525
Co-ed school, PK-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("St Jude Elementary School",'Grand_Rapids=' + Grand_Rapids.length); Grand_Rapids[Grand_Rapids.length] = createMarker(new GPoint(-85.60054600,42.92689500),"
St Paul The Apostle School
2750 Burton Street Se
Grand Rapids, MI 49546
Co-ed school, PK-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("St Paul The Apostle School",'Grand_Rapids=' + Grand_Rapids.length); Grand_Rapids[Grand_Rapids.length] = createMarker(new GPoint(-85.63496300,42.96110500),"
St Thomas The Apostle School
1429 Wilcox Park Drive Se
Grand Rapids, MI 49506
Co-ed school, PK-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("St Thomas The Apostle School",'Grand_Rapids=' + Grand_Rapids.length); Grand_Rapids[Grand_Rapids.length] = createMarker(new GPoint(-85.65691100,42.98334000),"
Stepping Stones Montessori
1110 College Avenue Ne
Grand Rapids, MI 49503
Co-ed school, PK-6
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Stepping Stones Montessori",'Grand_Rapids=' + Grand_Rapids.length); Grand_Rapids[Grand_Rapids.length] = createMarker(new GPoint(-85.62836700,42.93056300),"
Sylvan Christian School
1630 Griggs Street Se
Grand Rapids, MI 49506
school, PK-6
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Sylvan Christian School",'Grand_Rapids=' + Grand_Rapids.length); Grand_Rapids[Grand_Rapids.length] = createMarker(new GPoint(-85.70818700,42.99695100),"
West Catholic High School
1801 Bristol Avenue Nw
Grand Rapids, MI 49504
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("West Catholic High School",'Grand_Rapids=' + Grand_Rapids.length); Grand_Rapids[Grand_Rapids.length] = createMarker(new GPoint(-85.71988700,42.98198900),"
West Side Christian School
955 Westend Avenue Nw
Grand Rapids, MI 49504
Co-ed school, PK-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("West Side Christian School",'Grand_Rapids=' + Grand_Rapids.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,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(Grand_Rapids); 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(Grand_Rapids);map.removeOverlays(Grand_Rapids); map.addOverlays(Grand_Rapids); centerByArray(Grand_Rapids, false, false); cntMarker += Grand_Rapids.length; centerByArray(Grand_Rapids,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; }