function addMarkers(){ mySelect = document.getElementById('selection'); Boca_Raton = [];Delray_Beach = [];West_Palm_Beach = [];North_Palm_Beach = [];Lake_Park = [];Lake_Worth = [];Loxahatchee = [];Belle_Glade = [];Juno_Beach = [];Jupiter = [];Tequesta = [];Lantana = [];Boynton_Beach = [];Royal_Palm_Beach = [];Palm_Beach_Gardens = [];Riviera_Beach = [];Pahokee = [];Wellington = [];mySelect.options[mySelect.options.length] = new Option("Belle Glade schools",'all=Belle_Glade'); mySelect.options[mySelect.options.length] = new Option("Boca Raton schools",'all=Boca_Raton'); mySelect.options[mySelect.options.length] = new Option("Boynton Beach schools",'all=Boynton_Beach'); mySelect.options[mySelect.options.length] = new Option("Delray Beach schools",'all=Delray_Beach'); mySelect.options[mySelect.options.length] = new Option("Juno Beach schools",'all=Juno_Beach'); mySelect.options[mySelect.options.length] = new Option("Jupiter schools",'all=Jupiter'); mySelect.options[mySelect.options.length] = new Option("Lake Park schools",'all=Lake_Park'); mySelect.options[mySelect.options.length] = new Option("Lake Worth schools",'all=Lake_Worth'); mySelect.options[mySelect.options.length] = new Option("Lantana schools",'all=Lantana'); mySelect.options[mySelect.options.length] = new Option("Loxahatchee schools",'all=Loxahatchee'); mySelect.options[mySelect.options.length] = new Option("North Palm Beach schools",'all=North_Palm_Beach'); mySelect.options[mySelect.options.length] = new Option("Pahokee schools",'all=Pahokee'); mySelect.options[mySelect.options.length] = new Option("Palm Beach Gardens schools",'all=Palm_Beach_Gardens'); mySelect.options[mySelect.options.length] = new Option("Riviera Beach schools",'all=Riviera_Beach'); mySelect.options[mySelect.options.length] = new Option("Royal Palm Beach schools",'all=Royal_Palm_Beach'); mySelect.options[mySelect.options.length] = new Option("Tequesta schools",'all=Tequesta'); mySelect.options[mySelect.options.length] = new Option("Wellington schools",'all=Wellington'); mySelect.options[mySelect.options.length] = new Option("West Palm Beach schools",'all=West_Palm_Beach'); mySelect.options[mySelect.options.length] = new Option("---------------------------",''); Boca_Raton[Boca_Raton.length] = createMarker(new GPoint(-80.08415600,26.37126600),"
Academic High School
2300 N Dixie Highway
Boca Raton, FL 33431
Co-ed school, 8-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Academic High School",'Boca_Raton=' + Boca_Raton.length); Boca_Raton[Boca_Raton.length] = createMarker(new GPoint(-80.20162100,26.33238300),"
Academic High School of Boca Raton
23114 Sandalfoot Plaza Drive
Boca Raton, FL 33428
Co-ed school, 6-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Academic High School of Boca Raton",'Boca_Raton=' + Boca_Raton.length); Boca_Raton[Boca_Raton.length] = createMarker(new GPoint(-80.20162100,26.33238300),"
Academic High School For The Arts
23114 Sandalfoot Plaza Drive
Boca Raton, FL 33428
Co-ed school, 8-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Academic High School For The Arts",'Boca_Raton=' + Boca_Raton.length); Delray_Beach[Delray_Beach.length] = createMarker(new GPoint(-80.14289800,26.43894700),"
American Heritage School - Boca/Delray
6200 Linton Blvd.
Delray Beach, FL 33484
Co-ed school, PK-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("American Heritage School - Boca/Delray",'Delray_Beach=' + Delray_Beach.length); West_Palm_Beach[West_Palm_Beach.length] = createMarker(new GPoint(-80.08384500,26.64772500),"
Atlantis Academy, Palm Beaches
1950 Prairie Road
West Palm Beach, FL 33406
Co-ed school, PK-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Atlantis Academy, Palm Beaches",'West_Palm_Beach=' + West_Palm_Beach.length); North_Palm_Beach[North_Palm_Beach.length] = createMarker(new GPoint(-80.06256700,26.84476900),"
Baldwin Prep School
1951 Bomar Drive
North Palm Beach, FL 33408
Co-ed school, K-11
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Baldwin Prep School",'North_Palm_Beach=' + North_Palm_Beach.length); North_Palm_Beach[North_Palm_Beach.length] = createMarker(new GPoint(-80.05532400,26.86960300),"
Batt Private School
13205 US Highway 1, 202
North Palm Beach, FL 33408
Co-ed school, PK-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Batt Private School",'North_Palm_Beach=' + North_Palm_Beach.length); North_Palm_Beach[North_Palm_Beach.length] = createMarker(new GPoint(-80.06414400,26.83724900),"
The Benjamin School
11000 Ellison Wilson Road
North Palm Beach, FL 33408
Co-ed school, PK-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("The Benjamin School",'North_Palm_Beach=' + North_Palm_Beach.length); West_Palm_Beach[West_Palm_Beach.length] = createMarker(new GPoint(-80.17447900,26.70842000),"
Berean Christian School
8350 Okeechobee Blvd
West Palm Beach, FL 33411
Co-ed school, PK-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Berean Christian School",'West_Palm_Beach=' + West_Palm_Beach.length); Boca_Raton[Boca_Raton.length] = createMarker(new GPoint(-80.11708300,26.34431900),"
Boca Raton Christian High School
1551 W Camino Real
Boca Raton, FL 33486
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Boca Raton Christian High School",'Boca_Raton=' + Boca_Raton.length); Boca_Raton[Boca_Raton.length] = createMarker(new GPoint(-80.09226500,26.35374100),"
Boca Raton Christian School
315 NW 4th Street
Boca Raton, FL 33432
Co-ed school, PK-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Boca Raton Christian School",'Boca_Raton=' + Boca_Raton.length); West_Palm_Beach[West_Palm_Beach.length] = createMarker(new GPoint(-80.09396700,26.71034400),"
Cardinal Newman High School
512 Spencer Drive
West Palm Beach, FL 33409
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Cardinal Newman High School",'West_Palm_Beach=' + West_Palm_Beach.length); Boca_Raton[Boca_Raton.length] = createMarker(new GPoint(-80.09404600,26.37172400),"
Claremont Montessori School
2450 Nw 5th Avenue
Boca Raton, FL 33431
Co-ed school, 1-11
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Claremont Montessori School",'Boca_Raton=' + Boca_Raton.length); Lake_Park[Lake_Park.length] = createMarker(new GPoint(-80.06261500,26.79884000),"
Coastal Middle & Sr High School
730 Fifth St
Lake Park, FL 33403
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Coastal Middle & Sr High School",'Lake_Park=' + Lake_Park.length); West_Palm_Beach[West_Palm_Beach.length] = createMarker(new GPoint(-80.23080000,26.70800000),"
Conklin International Academy
8966 Belvedere Road
West Palm Beach, FL 33411
Co-ed school, PK-9
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Conklin International Academy",'West_Palm_Beach=' + West_Palm_Beach.length); Lake_Worth[Lake_Worth.length] = createMarker(new GPoint(-80.05760700,26.63181200),"
Dibacco School
1119 Crestwood Blvd
Lake Worth, FL 33460
Co-ed school, 7-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Dibacco School",'Lake_Worth=' + Lake_Worth.length); Loxahatchee[Loxahatchee.length] = createMarker(new GPoint(-80.26276400,26.64040800),"
Dillon Country Day & Lab School
13529 E Citrus Drive
Loxahatchee, FL 33470
Co-ed school, 7-11
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Dillon Country Day & Lab School",'Loxahatchee=' + Loxahatchee.length); Boca_Raton[Boca_Raton.length] = createMarker(new GPoint(-80.19577100,26.35765700),"
Donna Klein Jewish Academy
9701 Donna Klein Blvd
Boca Raton, FL 33428
Co-ed school, K-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Donna Klein Jewish Academy",'Boca_Raton=' + Boca_Raton.length); Lake_Park[Lake_Park.length] = createMarker(new GPoint(-80.06752000,26.79511800),"
Driftwood Academy
605 Flagler Blvd
Lake Park, FL 33403
Co-ed school, 8-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Driftwood Academy",'Lake_Park=' + Lake_Park.length); Lake_Worth[Lake_Worth.length] = createMarker(new GPoint(-80.06465300,26.63237400),"
The Elles School
1325 North A Street
Lake Worth, FL 33460
Co-ed school, 2-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("The Elles School",'Lake_Worth=' + Lake_Worth.length); Loxahatchee[Loxahatchee.length] = createMarker(new GPoint(-80.32170300,26.81611800),"
Family Tree Private School
17626 94th Street N
Loxahatchee, FL 33470
Co-ed school, K-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Family Tree Private School",'Loxahatchee=' + Loxahatchee.length); Belle_Glade[Belle_Glade.length] = createMarker(new GPoint(-80.66382600,26.69666300),"
Glades Day School
400 Gator Blvd
Belle Glade, FL 33430
Co-ed school, PK-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Glades Day School",'Belle_Glade=' + Belle_Glade.length); Boca_Raton[Boca_Raton.length] = createMarker(new GPoint(-80.08899200,26.38586600),"
Grandview Preparatory School
336 Nw Spanish River Blvd
Boca Raton, FL 33431
Co-ed school, PK-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Grandview Preparatory School",'Boca_Raton=' + Boca_Raton.length); Lake_Worth[Lake_Worth.length] = createMarker(new GPoint(-80.12105400,26.62676300),"
Greenacres Christian Academy
4982 Cambridge Street
Lake Worth, FL 33463
Co-ed school, NS-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Greenacres Christian Academy",'Lake_Worth=' + Lake_Worth.length); Lake_Park[Lake_Park.length] = createMarker(new GPoint(-80.07389100,26.80352200),"
H.i.s. Academy/institute
1259 10th Street
Lake Park, FL 33403
Co-ed school, 2-11
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("H.i.s. Academy/institute",'Lake_Park=' + Lake_Park.length); Boca_Raton[Boca_Raton.length] = createMarker(new GPoint(-80.12897600,26.38141200),"
The Harid Conservatory
2285 Potomac Road
Boca Raton, FL 33431
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("The Harid Conservatory",'Boca_Raton=' + Boca_Raton.length); West_Palm_Beach[West_Palm_Beach.length] = createMarker(new GPoint(-80.06590600,26.69446700),"
Hope Christian School
1101 Charles Street
West Palm Beach, FL 33401
Co-ed school, K-10
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Hope Christian School",'West_Palm_Beach=' + West_Palm_Beach.length); Juno_Beach[Juno_Beach.length] = createMarker(new GPoint(-80.05532400,26.86960300),"
Juno Beach Preparatory School
13205 Us Highway 1 Ste 202
Juno Beach, FL 33408
Co-ed school, 6-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Juno Beach Preparatory School",'Juno_Beach=' + Juno_Beach.length); Jupiter[Jupiter.length] = createMarker(new GPoint(-80.11768300,26.92839000),"
Jupiter Christian School
1300 Mohawk Street
Jupiter, FL 33458
Co-ed school, PK-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Jupiter Christian School",'Jupiter=' + Jupiter.length); Jupiter[Jupiter.length] = createMarker(new GPoint(-80.23325300,26.94236300),"
Jupiter Farms Community Christian School
12600 W Indiantown Road
Jupiter, FL 33478
Co-ed school, K-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Jupiter Farms Community Christian School",'Jupiter=' + Jupiter.length); Tequesta[Tequesta.length] = createMarker(new GPoint(-80.09800200,26.97057600),"
Jupiter Lighthouse Academy
4390 County Line Road
Tequesta, FL 33469
All-girls school, 9-12
[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Jupiter Lighthouse Academy",'Tequesta=' + Tequesta.length); Lantana[Lantana.length] = createMarker(new GPoint(-80.09258200,26.58431600),"
Kentwood Preparatory School
6210 S Congress Avenue
Lantana, FL 33462
Co-ed school, 2-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Kentwood Preparatory School",'Lantana=' + Lantana.length); West_Palm_Beach[West_Palm_Beach.length] = createMarker(new GPoint(-80.17815000,26.69203700),"
The King's Academy
8401 Belvedere Road
West Palm Beach, FL 33411
Co-ed school, PK-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("The King's Academy",'West_Palm_Beach=' + West_Palm_Beach.length); Boynton_Beach[Boynton_Beach.length] = createMarker(new GPoint(-80.07360000,26.59474000),"
Lake Worth Christian School
7592 High Ridge Road
Boynton Beach, FL 33426
Co-ed school, PK-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Lake Worth Christian School",'Boynton_Beach=' + Boynton_Beach.length); Royal_Palm_Beach[Royal_Palm_Beach.length] = createMarker(new GPoint(-80.22728000,26.76561700),"
The Learning Foundation Of Florida
11784 60th Street N
Royal Palm Beach, FL 33411
Co-ed school, PK-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("The Learning Foundation Of Florida",'Royal_Palm_Beach=' + Royal_Palm_Beach.length); Palm_Beach_Gardens[Palm_Beach_Gardens.length] = createMarker(new GPoint(-80.05268900,26.71438800),"
Maranatha Christian Academy
PO Box 31149
Palm Beach Gardens, FL 33420
Co-ed school, PK-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Maranatha Christian Academy",'Palm_Beach_Gardens=' + Palm_Beach_Gardens.length); West_Palm_Beach[West_Palm_Beach.length] = createMarker(new GPoint(-80.07981400,26.67281300),"
Matlock Academy
2491 Homewood Road
West Palm Beach, FL 33406
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Matlock Academy",'West_Palm_Beach=' + West_Palm_Beach.length); Boca_Raton[Boca_Raton.length] = createMarker(new GPoint(-80.08738600,26.37411800),"
New Horizon Academy
2555 Nw Boca Raton Blvd
Boca Raton, FL 33431
Co-ed school, 8-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("New Horizon Academy",'Boca_Raton=' + Boca_Raton.length); Lake_Worth[Lake_Worth.length] = createMarker(new GPoint(-80.13519000,26.62295100),"
Palm Beach County Independent
5797 S 37th Court
Lake Worth, FL 33463
Co-ed school, K-11
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Palm Beach County Independent",'Lake_Worth=' + Lake_Worth.length); West_Palm_Beach[West_Palm_Beach.length] = createMarker(new GPoint(-80.05029500,26.69744200),"
Palm Beach Day Academy
1901 South Flagler Dr.
West Palm Beach, FL 33401
Co-ed school, PK-9
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Palm Beach Day Academy",'West_Palm_Beach=' + West_Palm_Beach.length); Palm_Beach_Gardens[Palm_Beach_Gardens.length] = createMarker(new GPoint(-80.09469500,26.82920400),"
Palm Beach Preparatory School
10350 Riverside Drive
Palm Beach Gardens, FL 33410
Co-ed school, 1-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Palm Beach Preparatory School",'Palm_Beach_Gardens=' + Palm_Beach_Gardens.length); Boca_Raton[Boca_Raton.length] = createMarker(new GPoint(-80.12150900,26.38768800),"
Pope John Paul Ii High School
4001 N Military Trail
Boca Raton, FL 33431
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Pope John Paul Ii High School",'Boca_Raton=' + Boca_Raton.length); Riviera_Beach[Riviera_Beach.length] = createMarker(new GPoint(-80.07844500,26.78623700),"
R J Hendley Christian Education Center
2800 Avenue R
Riviera Beach, FL 33404
Co-ed school, PK-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("R J Hendley Christian Education Center",'Riviera_Beach=' + Riviera_Beach.length); Boca_Raton[Boca_Raton.length] = createMarker(new GPoint(-80.14715600,26.38501900),"
Saint Andrew's School
3900 Jog Road
Boca Raton, FL 33434
Co-ed school, PK-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Saint Andrew's School",'Boca_Raton=' + Boca_Raton.length); Pahokee[Pahokee.length] = createMarker(new GPoint(-80.68331800,26.81351900),"
The Shepherd's School
1800 Bacom Point Road
Pahokee, FL 33476
Co-ed school, PK-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("The Shepherd's School",'Pahokee=' + Pahokee.length); Royal_Palm_Beach[Royal_Palm_Beach.length] = createMarker(new GPoint(-80.24340300,26.68727300),"
Southwide Educational Ministri
100 Cypress Lake Dr
Royal Palm Beach, FL 33411
Co-ed school, KG-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Southwide Educational Ministri",'Royal_Palm_Beach=' + Royal_Palm_Beach.length); West_Palm_Beach[West_Palm_Beach.length] = createMarker(new GPoint(-80.12008400,26.66279600),"
Summit Christian School
4900 Summit Blvd
West Palm Beach, FL 33415
Co-ed school, NS-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Summit Christian School",'West_Palm_Beach=' + West_Palm_Beach.length); Boca_Raton[Boca_Raton.length] = createMarker(new GPoint(-80.08767000,26.38482300),"
Summit Private School
3881 Nw 3rd Avenue
Boca Raton, FL 33431
Co-ed school, PK-6
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Summit Private School",'Boca_Raton=' + Boca_Raton.length); West_Palm_Beach[West_Palm_Beach.length] = createMarker(new GPoint(-80.05268900,26.71438800),"
Trace Academy
4365 Okeechobee Blvd B4
West Palm Beach, FL 33409
Co-ed school, PK-9
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Trace Academy",'West_Palm_Beach=' + West_Palm_Beach.length); Lake_Worth[Lake_Worth.length] = createMarker(new GPoint(-80.11390500,26.56864300),"
Trinity Christian Academy
7259 S Military Trail
Lake Worth, FL 33463
Co-ed school, PK-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Trinity Christian Academy",'Lake_Worth=' + Lake_Worth.length); Boca_Raton[Boca_Raton.length] = createMarker(new GPoint(-80.16574200,26.34839800),"
Weinbaum Yeshiva High School
7902 Montoya Circle N
Boca Raton, FL 33433
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Weinbaum Yeshiva High School",'Boca_Raton=' + Boca_Raton.length); Palm_Beach_Gardens[Palm_Beach_Gardens.length] = createMarker(new GPoint(-80.09989900,26.83059300),"
The Weiss School
4176 Burns Road
Palm Beach Gardens, FL 33410
Co-ed school, PK-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("The Weiss School",'Palm_Beach_Gardens=' + Palm_Beach_Gardens.length); Wellington[Wellington.length] = createMarker(new GPoint(-80.25093400,26.67251000),"
Wellington Christian School
1000 Wellington Trace
Wellington, FL 33414
Co-ed school, PK-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Wellington Christian School",'Wellington=' + Wellington.length); West_Palm_Beach[West_Palm_Beach.length] = createMarker(new GPoint(-80.14095400,26.66336300),"
West Palm Beach Jr Academy
6300 Summit Blvd
West Palm Beach, FL 33415
Co-ed school, PK-10
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("West Palm Beach Jr Academy",'West_Palm_Beach=' + West_Palm_Beach.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/////2/' + showArray); map.removeOverlays(Belle_Glade); map.removeOverlays(Boca_Raton); map.removeOverlays(Boynton_Beach); map.removeOverlays(Delray_Beach); map.removeOverlays(Juno_Beach); map.removeOverlays(Jupiter); map.removeOverlays(Lake_Park); map.removeOverlays(Lake_Worth); map.removeOverlays(Lantana); map.removeOverlays(Loxahatchee); map.removeOverlays(North_Palm_Beach); map.removeOverlays(Pahokee); map.removeOverlays(Palm_Beach_Gardens); map.removeOverlays(Riviera_Beach); map.removeOverlays(Royal_Palm_Beach); map.removeOverlays(Tequesta); map.removeOverlays(Wellington); map.removeOverlays(West_Palm_Beach); 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(Boca_Raton);map.removeOverlays(Belle_Glade); map.removeOverlays(Boca_Raton); map.removeOverlays(Boynton_Beach); map.removeOverlays(Delray_Beach); map.removeOverlays(Juno_Beach); map.removeOverlays(Jupiter); map.removeOverlays(Lake_Park); map.removeOverlays(Lake_Worth); map.removeOverlays(Lantana); map.removeOverlays(Loxahatchee); map.removeOverlays(North_Palm_Beach); map.removeOverlays(Pahokee); map.removeOverlays(Palm_Beach_Gardens); map.removeOverlays(Riviera_Beach); map.removeOverlays(Royal_Palm_Beach); map.removeOverlays(Tequesta); map.removeOverlays(Wellington); map.removeOverlays(West_Palm_Beach); map.addOverlays(Belle_Glade); centerByArray(Belle_Glade, false, false); cntMarker += Belle_Glade.length; map.addOverlays(Boca_Raton); centerByArray(Boca_Raton, false, false); cntMarker += Boca_Raton.length; map.addOverlays(Boynton_Beach); centerByArray(Boynton_Beach, false, false); cntMarker += Boynton_Beach.length; map.addOverlays(Delray_Beach); centerByArray(Delray_Beach, false, false); cntMarker += Delray_Beach.length; map.addOverlays(Juno_Beach); centerByArray(Juno_Beach, false, false); cntMarker += Juno_Beach.length; map.addOverlays(Jupiter); centerByArray(Jupiter, false, false); cntMarker += Jupiter.length; map.addOverlays(Lake_Park); centerByArray(Lake_Park, false, false); cntMarker += Lake_Park.length; map.addOverlays(Lake_Worth); centerByArray(Lake_Worth, false, false); cntMarker += Lake_Worth.length; map.addOverlays(Lantana); centerByArray(Lantana, false, false); cntMarker += Lantana.length; map.addOverlays(Loxahatchee); centerByArray(Loxahatchee, false, false); cntMarker += Loxahatchee.length; map.addOverlays(North_Palm_Beach); centerByArray(North_Palm_Beach, false, false); cntMarker += North_Palm_Beach.length; map.addOverlays(Pahokee); centerByArray(Pahokee, false, false); cntMarker += Pahokee.length; map.addOverlays(Palm_Beach_Gardens); centerByArray(Palm_Beach_Gardens, false, false); cntMarker += Palm_Beach_Gardens.length; map.addOverlays(Riviera_Beach); centerByArray(Riviera_Beach, false, false); cntMarker += Riviera_Beach.length; map.addOverlays(Royal_Palm_Beach); centerByArray(Royal_Palm_Beach, false, false); cntMarker += Royal_Palm_Beach.length; map.addOverlays(Tequesta); centerByArray(Tequesta, false, false); cntMarker += Tequesta.length; map.addOverlays(Wellington); centerByArray(Wellington, false, false); cntMarker += Wellington.length; map.addOverlays(West_Palm_Beach); centerByArray(West_Palm_Beach, false, false); cntMarker += West_Palm_Beach.length; centerByArray(Boca_Raton,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=2&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; }