function addMarkers(){ mySelect = document.getElementById('selection'); Green_Bay = [];Denmark = [];Pulaski = [];De_Pere = [];Greenleaf = [];Kaukauna = [];Wrightstown = [];mySelect.options[mySelect.options.length] = new Option("De Pere schools",'all=De_Pere'); mySelect.options[mySelect.options.length] = new Option("Denmark schools",'all=Denmark'); mySelect.options[mySelect.options.length] = new Option("Green Bay schools",'all=Green_Bay'); mySelect.options[mySelect.options.length] = new Option("Greenleaf schools",'all=Greenleaf'); mySelect.options[mySelect.options.length] = new Option("Kaukauna schools",'all=Kaukauna'); mySelect.options[mySelect.options.length] = new Option("Pulaski schools",'all=Pulaski'); mySelect.options[mySelect.options.length] = new Option("Wrightstown schools",'all=Wrightstown'); mySelect.options[mySelect.options.length] = new Option("---------------------------",''); Green_Bay[Green_Bay.length] = createMarker(new GPoint(-88.05332800,44.52782100),"
Adventist Junior Academy
1422 Shawano Avenue
Green Bay, WI 54303
Co-ed school, 1-10
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Adventist Junior Academy",'Green_Bay=' + Green_Bay.length); Denmark[Denmark.length] = createMarker(new GPoint(-87.81600000,44.36460000),"
All Saints School
Po Box 787
Denmark, WI 54208
Co-ed school, K-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("All Saints School",'Denmark=' + Denmark.length); Pulaski[Pulaski.length] = createMarker(new GPoint(-88.24180800,44.67253700),"
Assumption Bvm Elementary School
109 E Pulaski Street
Pulaski, WI 54162
Co-ed school, PK-5
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Assumption Bvm Elementary School",'Pulaski=' + Pulaski.length); Green_Bay[Green_Bay.length] = createMarker(new GPoint(-88.06673300,44.54089800),"
Bay City Baptist School
1840 Bond Street
Green Bay, WI 54303
Co-ed school, PK-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Bay City Baptist School",'Green_Bay=' + Green_Bay.length); Green_Bay[Green_Bay.length] = createMarker(new GPoint(-88.06592700,44.49975900),"
Beth Haven Academy
2023 S Ridge Road
Green Bay, WI 54304
Co-ed school, K-K
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Beth Haven Academy",'Green_Bay=' + Green_Bay.length); De_Pere[De_Pere.length] = createMarker(new GPoint(-88.05660700,44.44848800),"
Creekside Christian Montessori
133 S Superior Street
De Pere, WI 54115
Co-ed school, PK-K
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Creekside Christian Montessori",'De_Pere=' + De_Pere.length); Green_Bay[Green_Bay.length] = createMarker(new GPoint(-88.05731400,44.48693700),"
Enterprise Academy Inc
680 Cormier Road
Green Bay, WI 54304
Co-ed school, PK-6
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Enterprise Academy Inc",'Green_Bay=' + Green_Bay.length); Green_Bay[Green_Bay.length] = createMarker(new GPoint(-88.01626700,44.50366300),"
First Ev. Lutheran School
743 S. Monroe Ave.
Green Bay, WI 54301
Co-ed school, PK-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("First Ev. Lutheran School",'Green_Bay=' + Green_Bay.length); Green_Bay[Green_Bay.length] = createMarker(new GPoint(-88.10007000,44.56941400),"
Green Bay Christian Academy
1021 Hillcrest Hts
Green Bay, WI 54313
Co-ed school, PK-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Green Bay Christian Academy",'Green_Bay=' + Green_Bay.length); Green_Bay[Green_Bay.length] = createMarker(new GPoint(-88.01015900,44.51279500),"
Green Bay Montessori
Po Box 11964
Green Bay, WI 54307
Co-ed school, PK-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Green Bay Montessori",'Green_Bay=' + Green_Bay.length); Green_Bay[Green_Bay.length] = createMarker(new GPoint(-88.01612400,44.50872000),"
Green Bay Montessori Children'
411 Saint John Street
Green Bay, WI 54301
Co-ed school, PK-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Green Bay Montessori Children'",'Green_Bay=' + Green_Bay.length); Green_Bay[Green_Bay.length] = createMarker(new GPoint(-87.97832200,44.50193400),"
Green Bay Trinity Lutheran School
120 S Henry Street
Green Bay, WI 54302
Co-ed school, 1-4
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Green Bay Trinity Lutheran School",'Green_Bay=' + Green_Bay.length); Green_Bay[Green_Bay.length] = createMarker(new GPoint(-87.89012100,44.55311400),"
Holy Cross Catholic School
3002 Bay Settlement Rd
Green Bay, WI 54311
Co-ed school, PK-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Holy Cross Catholic School",'Green_Bay=' + Green_Bay.length); Green_Bay[Green_Bay.length] = createMarker(new GPoint(-88.06455600,44.51569200),"
Holy Family School
1204 S Fisk Street
Green Bay, WI 54304
Co-ed school, PK-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Holy Family School",'Green_Bay=' + Green_Bay.length); De_Pere[De_Pere.length] = createMarker(new GPoint(-88.08080000,44.42740000),"
Immanuel Evangelical Lutheran School Of Shirley
3737 Shirley Road
De Pere, WI 54115
Co-ed school, K-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Immanuel Evangelical Lutheran School Of Shirley",'De_Pere=' + De_Pere.length); Green_Bay[Green_Bay.length] = createMarker(new GPoint(-88.01063500,44.49785100),"
Marian Montessori Center
1130 Eliza St.,
Green Bay, WI 54301
Co-ed school, KG-KG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Marian Montessori Center",'Green_Bay=' + Green_Bay.length); Green_Bay[Green_Bay.length] = createMarker(new GPoint(-88.06374200,44.48887000),"
Montessori Children's Academy
827 Cormier Road
Green Bay, WI 54304
Co-ed school, -
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Montessori Children's Academy",'Green_Bay=' + Green_Bay.length); Greenleaf[Greenleaf.length] = createMarker(new GPoint(-88.03000600,44.29161900),"
Morrison Zion Lutheran School
7373 Hwy W
Greenleaf, WI 54126
Co-ed school, PK-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Morrison Zion Lutheran School",'Greenleaf=' + Greenleaf.length); Green_Bay[Green_Bay.length] = createMarker(new GPoint(-88.00785900,44.51601700),"
Mount Carmel Academy
Po Box 22067
Green Bay, WI 54305
Co-ed school, 1-7
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Mount Carmel Academy",'Green_Bay=' + Green_Bay.length); De_Pere[De_Pere.length] = createMarker(new GPoint(-88.05906600,44.44747700),"
Notre Dame School Of De Pere
221 S Wisconsin Street
De Pere, WI 54115
Co-ed school, PK-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Notre Dame School Of De Pere",'De_Pere=' + De_Pere.length); De_Pere[De_Pere.length] = createMarker(new GPoint(-88.08870200,44.43956300),"
Our Lady Of Lourdes School
1305 Lourdes Avenue
De Pere, WI 54115
Co-ed school, PK-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Our Lady Of Lourdes School",'De_Pere=' + De_Pere.length); Green_Bay[Green_Bay.length] = createMarker(new GPoint(-87.97831500,44.50196000),"
Our Savior Lutheran Preschool
120 S Henry
Green Bay, WI 54302
Co-ed school, PK-KG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Our Savior Lutheran Preschool",'Green_Bay=' + Green_Bay.length); Green_Bay[Green_Bay.length] = createMarker(new GPoint(-87.97832200,44.50193400),"
Our Saviour Lutheran Preschool & Kindergarten
120 S Henry Street
Green Bay, WI 54302
Co-ed school, PK-K
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Our Saviour Lutheran Preschool & Kindergarten",'Green_Bay=' + Green_Bay.length); Green_Bay[Green_Bay.length] = createMarker(new GPoint(-88.06893400,44.50908600),"
Pilgrim Lutheran School
1731 Saint Agnes Drive
Green Bay, WI 54304
Co-ed school, PK-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Pilgrim Lutheran School",'Green_Bay=' + Green_Bay.length); Green_Bay[Green_Bay.length] = createMarker(new GPoint(-87.90615300,44.48763700),"
Prince Of Peace School
3542 Finger Road
Green Bay, WI 54311
Co-ed school, PK-5
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Prince Of Peace School",'Green_Bay=' + Green_Bay.length); Green_Bay[Green_Bay.length] = createMarker(new GPoint(-88.05052200,44.53123800),"
Providence Academy
1420 Division Street
Green Bay, WI 54303
Co-ed school, PK-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Providence Academy",'Green_Bay=' + Green_Bay.length); Green_Bay[Green_Bay.length] = createMarker(new GPoint(-88.04466700,44.52242800),"
Redeemer Lutheran School
205 Hudson Street
Green Bay, WI 54303
Co-ed school, PK-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Redeemer Lutheran School",'Green_Bay=' + Green_Bay.length); Green_Bay[Green_Bay.length] = createMarker(new GPoint(-88.03242000,44.45938600),"
Resurrection Catholic School
333 Hilltop Drive
Green Bay, WI 54301
Co-ed school, PK-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Resurrection Catholic School",'Green_Bay=' + Green_Bay.length); Green_Bay[Green_Bay.length] = createMarker(new GPoint(-87.97278300,44.49478700),"
St. Bernard School
2020 Hillside Lane
Green Bay, WI 54302
Co-ed school, PK-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("St. Bernard School",'Green_Bay=' + Green_Bay.length); Kaukauna[Kaukauna.length] = createMarker(new GPoint(-88.17643700,44.24953100),"
St. Francis Elementary School
431 County Road Ce
Kaukauna, WI 54130
Co-ed school, K-5
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("St. Francis Elementary School",'Kaukauna=' + Kaukauna.length); Green_Bay[Green_Bay.length] = createMarker(new GPoint(-88.08273300,44.56475900),"
St. John The Baptist School
2561 Glendale Avenue
Green Bay, WI 54313
Co-ed school, PK-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("St. John The Baptist School",'Green_Bay=' + Green_Bay.length); Green_Bay[Green_Bay.length] = createMarker(new GPoint(-88.05650300,44.50375900),"
St. Mark Lutheran School
1167 Kenwood Street
Green Bay, WI 54304
Co-ed school, PK-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("St. Mark Lutheran School",'Green_Bay=' + Green_Bay.length); Green_Bay[Green_Bay.length] = createMarker(new GPoint(-88.06616000,44.53227300),"
St. Mary's Hospital Early Child Center
1726 Shawano Ave
Green Bay, WI 54303
Co-ed school, KG-KG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("St. Mary's Hospital Early Child Center",'Green_Bay=' + Green_Bay.length); Green_Bay[Green_Bay.length] = createMarker(new GPoint(-88.02785100,44.47525200),"
St. Matthew School
2575 S Webster Avenue
Green Bay, WI 54301
Co-ed school, PK-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("St. Matthew School",'Green_Bay=' + Green_Bay.length); Green_Bay[Green_Bay.length] = createMarker(new GPoint(-88.00720300,44.50469800),"
St. Paul Lutheran School
514 South Clay St
Green Bay, WI 54301
Co-ed school, PK-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("St. Paul Lutheran School",'Green_Bay=' + Green_Bay.length); Green_Bay[Green_Bay.length] = createMarker(new GPoint(-88.00272500,44.50100600),"
St. Thomas More School
650 S Irwin Avenue
Green Bay, WI 54301
Co-ed school, PK-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("St. Thomas More School",'Green_Bay=' + Green_Bay.length); Green_Bay[Green_Bay.length] = createMarker(new GPoint(-88.03127500,44.51993300),"
St James Lutheran School
901 Shawano Avenue
Green Bay, WI 54303
Co-ed school, K-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("St James Lutheran School",'Green_Bay=' + Green_Bay.length); Wrightstown[Wrightstown.length] = createMarker(new GPoint(-88.15908700,44.32727300),"
St John Evang Lutheran School
261 Clay Street
Wrightstown, WI 54180
Co-ed school, PK-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("St John Evang Lutheran School",'Wrightstown=' + Wrightstown.length); Greenleaf[Greenleaf.length] = createMarker(new GPoint(-88.05580800,44.31343400),"
St Marys Elementary School
2218 Day Street
Greenleaf, WI 54126
Co-ed school, PK-6
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("St Marys Elementary School",'Greenleaf=' + Greenleaf.length); Wrightstown[Wrightstown.length] = createMarker(new GPoint(-88.16400000,44.32520000),"
St Paul Elementary School
Po Box 177 425 Main Street
Wrightstown, WI 54180
Co-ed school, PK-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("St Paul Elementary School",'Wrightstown=' + Wrightstown.length); Green_Bay[Green_Bay.length] = createMarker(new GPoint(-88.05045700,44.53118300),"
Trinity Catholic School
1087 Kellogg Street
Green Bay, WI 54303
Co-ed school, PK-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Trinity Catholic School",'Green_Bay=' + Green_Bay.length); De_Pere[De_Pere.length] = createMarker(new GPoint(-88.07138200,44.44544700),"
Wisconsin International School
405 Grant Street
De Pere, WI 54115
Co-ed school, PK-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Wisconsin International School",'De_Pere=' + De_Pere.length); Greenleaf[Greenleaf.length] = createMarker(new GPoint(-88.03880000,44.28830000),"
Zion Lutheran School Of Wayside
8374 County Road W
Greenleaf, WI 54126
Co-ed school, PK-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Zion Lutheran School Of Wayside",'Greenleaf=' + Greenleaf.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/////1/' + showArray); map.removeOverlays(De_Pere); map.removeOverlays(Denmark); map.removeOverlays(Green_Bay); map.removeOverlays(Greenleaf); map.removeOverlays(Kaukauna); map.removeOverlays(Pulaski); map.removeOverlays(Wrightstown); 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(Green_Bay);map.removeOverlays(De_Pere); map.removeOverlays(Denmark); map.removeOverlays(Green_Bay); map.removeOverlays(Greenleaf); map.removeOverlays(Kaukauna); map.removeOverlays(Pulaski); map.removeOverlays(Wrightstown); map.addOverlays(De_Pere); centerByArray(De_Pere, false, false); cntMarker += De_Pere.length; map.addOverlays(Denmark); centerByArray(Denmark, false, false); cntMarker += Denmark.length; map.addOverlays(Green_Bay); centerByArray(Green_Bay, false, false); cntMarker += Green_Bay.length; map.addOverlays(Greenleaf); centerByArray(Greenleaf, false, false); cntMarker += Greenleaf.length; map.addOverlays(Kaukauna); centerByArray(Kaukauna, false, false); cntMarker += Kaukauna.length; map.addOverlays(Pulaski); centerByArray(Pulaski, false, false); cntMarker += Pulaski.length; map.addOverlays(Wrightstown); centerByArray(Wrightstown, false, false); cntMarker += Wrightstown.length; centerByArray(Green_Bay,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=1&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; }