function addMarkers(){ mySelect = document.getElementById('selection'); Bellevue = [];Bellevue[Bellevue.length] = createMarker(new GPoint(-122.16141100,47.62815600),"
Academic Institute
13400 NE 20th Street Suite 47
Bellevue, WA 98005
Co-ed school, 8-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Academic Institute",'Bellevue=' + Bellevue.length); Bellevue[Bellevue.length] = createMarker(new GPoint(-122.14961100,47.62878500),"
Americas Child Montessori
14340 Ne 21st Street
Bellevue, WA 98007
Co-ed school, PK-2
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Americas Child Montessori",'Bellevue=' + Bellevue.length); Bellevue[Bellevue.length] = createMarker(new GPoint(-122.14475800,47.63162900),"
Bellevue Children's Academy
14600 NE 24th Street
Bellevue, WA 98007
Co-ed school, PK-6
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Bellevue Children's Academy",'Bellevue=' + Bellevue.length); Bellevue[Bellevue.length] = createMarker(new GPoint(-122.19114200,47.63271800),"
Bellevue Montessori School
2411 112th Avenue NE
Bellevue, WA 98004
Co-ed school, PK-6
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Bellevue Montessori School",'Bellevue=' + Bellevue.length); Bellevue[Bellevue.length] = createMarker(new GPoint(-122.19911900,47.61473100),"
Bright Horizons
505 106th Avenue Ne 100
Bellevue, WA 98004
Co-ed school, NS-K
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Bright Horizons",'Bellevue=' + Bellevue.length); Bellevue[Bellevue.length] = createMarker(new GPoint(-122.12421100,47.61503000),"
Calvary Lutheran Preschool And Kindergarten
16231 Ne 6th Street
Bellevue, WA 98008
Co-ed school, NS-PK
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Calvary Lutheran Preschool And Kindergarten",'Bellevue=' + Bellevue.length); Bellevue[Bellevue.length] = createMarker(new GPoint(-122.12415600,47.61506300),"
Calvary Lutheran School
16231 Ne 6th St
Bellevue, WA 98008
Co-ed school, 1-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Calvary Lutheran School",'Bellevue=' + Bellevue.length); Bellevue[Bellevue.length] = createMarker(new GPoint(-122.18543200,47.63457900),"
Chestnut Hill Academy
2610 116th Avenue Ne
Bellevue, WA 98004
Co-ed school, K-5
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Chestnut Hill Academy",'Bellevue=' + Bellevue.length); Bellevue[Bellevue.length] = createMarker(new GPoint(-122.12932400,47.56688800),"
Cougar Mountain Montessori Preschool
4442 158th Avenue Se
Bellevue, WA 98006
Co-ed school, PK-K
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Cougar Mountain Montessori Preschool",'Bellevue=' + Bellevue.length); Bellevue[Bellevue.length] = createMarker(new GPoint(-122.16140000,47.62259500),"
Dartmoor School
13401 Bel Red Road
Bellevue, WA 98005
Co-ed school, 1-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Dartmoor School",'Bellevue=' + Bellevue.length); Bellevue[Bellevue.length] = createMarker(new GPoint(-122.15617300,47.62374200),"
Early World Childrens School
13831 Bel Red Road
Bellevue, WA 98005
Co-ed school, PK-K
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Early World Childrens School",'Bellevue=' + Bellevue.length); Bellevue[Bellevue.length] = createMarker(new GPoint(-122.20179400,47.62649500),"
Eastside Academy
1717 Bellevue Way Ne
Bellevue, WA 98004
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Eastside Academy",'Bellevue=' + Bellevue.length); Bellevue[Bellevue.length] = createMarker(new GPoint(-122.14439500,47.59070200),"
Eastside Christian School
14615 Se 22nd Street
Bellevue, WA 98007
Co-ed school, PK-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Eastside Christian School",'Bellevue=' + Bellevue.length); Bellevue[Bellevue.length] = createMarker(new GPoint(-122.17194200,47.57710100),"
Educational Advancement Academy
12600 Se 38th Street Suite 111
Bellevue, WA 98006
Co-ed school, 8-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Educational Advancement Academy",'Bellevue=' + Bellevue.length); Bellevue[Bellevue.length] = createMarker(new GPoint(-122.13173300,47.57590200),"
Emerald Heights Academy
3850 - 156th Avenue SE
Bellevue, WA 98006
Co-ed school, PK-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Emerald Heights Academy",'Bellevue=' + Bellevue.length); Bellevue[Bellevue.length] = createMarker(new GPoint(-122.12984700,47.63398600),"
Eton School
2701 Bellevue Redmond Rd
Bellevue, WA 98008
Co-ed school, PK-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Eton School",'Bellevue=' + Bellevue.length); Bellevue[Bellevue.length] = createMarker(new GPoint(-122.15527300,47.55974900),"
Forest Ridge School Of The Sacred Heart
4800 139th Avenue Se
Bellevue, WA 98006
All-girls school, 5-12
[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Forest Ridge School Of The Sacred Heart",'Bellevue=' + Bellevue.length); Bellevue[Bellevue.length] = createMarker(new GPoint(-122.10130500,47.56996800),"
French Immersion School Of Washington
4211 W Lake Sammamish Parkway Se
Bellevue, WA 98008
Co-ed school, PK-5
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("French Immersion School Of Washington",'Bellevue=' + Bellevue.length); Bellevue[Bellevue.length] = createMarker(new GPoint(-122.13971900,47.62741300),"
Highland Christian School
15022 Bellevue Redmond Road
Bellevue, WA 98007
Co-ed school, NS-K
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Highland Christian School",'Bellevue=' + Bellevue.length); Bellevue[Bellevue.length] = createMarker(new GPoint(-122.12739200,47.55750600),"
Hillside Student Community
5027 159th Place Se
Bellevue, WA 98006
Co-ed school, 5-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Hillside Student Community",'Bellevue=' + Bellevue.length); Bellevue[Bellevue.length] = createMarker(new GPoint(-122.13016600,47.61319000),"
Jewish Day School
15749 NE 4th Street
Bellevue, WA 98008
Co-ed school, PK-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Jewish Day School",'Bellevue=' + Bellevue.length); Bellevue[Bellevue.length] = createMarker(new GPoint(-122.11821100,47.55732200),"
Lakemont Academy
5015 Lakemont Blvd Se
Bellevue, WA 98006
Co-ed school, PK-K
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Lakemont Academy",'Bellevue=' + Bellevue.length); Bellevue[Bellevue.length] = createMarker(new GPoint(-122.16778800,47.63091500),"
Learning Garden School
2320 130th Ave Ne Bld E
Bellevue, WA 98005
Co-ed school, KG-KG
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Learning Garden School",'Bellevue=' + Bellevue.length); Bellevue[Bellevue.length] = createMarker(new GPoint(-122.18539500,47.63647100),"
The Little School
2812 116th Avenue Ne
Bellevue, WA 98004
Co-ed school, PK-6
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("The Little School",'Bellevue=' + Bellevue.length); Bellevue[Bellevue.length] = createMarker(new GPoint(-122.15380300,47.61629700),"
Neighborhood Christian School/
625 140th Avenue Ne
Bellevue, WA 98005
Co-ed school, PK-5
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Neighborhood Christian School/",'Bellevue=' + Bellevue.length); Bellevue[Bellevue.length] = createMarker(new GPoint(-122.16671100,47.56853700),"
Newport Children's School
12930 Se Newport Way
Bellevue, WA 98006
Co-ed school, PK-1
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Newport Children's School",'Bellevue=' + Bellevue.length); Bellevue[Bellevue.length] = createMarker(new GPoint(-122.14973400,47.55902000),"
Open Window School/Vista Academy
6128168th Place SE
Bellevue, WA 98006
Co-ed school, K-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Open Window School/Vista Academy",'Bellevue=' + Bellevue.length); Bellevue[Bellevue.length] = createMarker(new GPoint(-122.21438900,47.62305200),"
Sacred Heart School
9450 N.E. 14th Street
Bellevue, WA 98004
Co-ed school, K-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Sacred Heart School",'Bellevue=' + Bellevue.length); Bellevue[Bellevue.length] = createMarker(new GPoint(-122.13250900,47.61146600),"
St. Louise School
133 156th Ave St
Bellevue, WA 98007
Co-ed school, K-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("St. Louise School",'Bellevue=' + Bellevue.length); Bellevue[Bellevue.length] = createMarker(new GPoint(-122.12386100,47.61357000),"
Spectrum Learning Community
16230 Ne 4th Street
Bellevue, WA 98008
Co-ed school, PK-1
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Spectrum Learning Community",'Bellevue=' + Bellevue.length); Bellevue[Bellevue.length] = createMarker(new GPoint(-122.13234400,47.60872500),"
St Louise Parish School
133 156th Avenue Se
Bellevue, WA 98007
Co-ed school, K-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("St Louise Parish School",'Bellevue=' + Bellevue.length); Bellevue[Bellevue.length] = createMarker(new GPoint(-122.16563500,47.56485200),"
St Madeleine Sophie Catholic School
4400 130th Place Se
Bellevue, WA 98006
Co-ed school, PK-6
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("St Madeleine Sophie Catholic School",'Bellevue=' + Bellevue.length); Bellevue[Bellevue.length] = createMarker(new GPoint(-122.18682900,47.62664900),"
Sundance Pre K & Kindergarten Center
1853 115th Avenue Ne
Bellevue, WA 98004
Co-ed school, PK-K
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Sundance Pre K & Kindergarten Center",'Bellevue=' + Bellevue.length); Bellevue[Bellevue.length] = createMarker(new GPoint(-122.18788300,47.62663200),"
Sundance Preschool & Daycare
1841 114th Avenue Ne
Bellevue, WA 98004
Co-ed school, PK-K
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Sundance Preschool & Daycare",'Bellevue=' + Bellevue.length); Bellevue[Bellevue.length] = createMarker(new GPoint(-122.17472400,47.61528300),"
Three Cedars Waldorf School
556 124th Avenue NE
Bellevue, WA 98005
Co-ed school, PK-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Three Cedars Waldorf School",'Bellevue=' + Bellevue.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(Bellevue); 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(Bellevue);map.removeOverlays(Bellevue); map.addOverlays(Bellevue); centerByArray(Bellevue, false, false); cntMarker += Bellevue.length; centerByArray(Bellevue,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; }