function addMarkers(){ mySelect = document.getElementById('selection'); Oakland = [];Fremont = [];Hayward = [];Berkeley = [];San_Ramon = [];Livermore = [];Alameda = [];San_Leandro = [];Pleasanton = [];San_Lorenzo = [];Union_City = [];Dublin = [];mySelect.options[mySelect.options.length] = new Option("Alameda schools",'all=Alameda'); mySelect.options[mySelect.options.length] = new Option("Berkeley schools",'all=Berkeley'); mySelect.options[mySelect.options.length] = new Option("Dublin schools",'all=Dublin'); mySelect.options[mySelect.options.length] = new Option("Fremont schools",'all=Fremont'); mySelect.options[mySelect.options.length] = new Option("Hayward schools",'all=Hayward'); mySelect.options[mySelect.options.length] = new Option("Livermore schools",'all=Livermore'); mySelect.options[mySelect.options.length] = new Option("Oakland schools",'all=Oakland'); mySelect.options[mySelect.options.length] = new Option("Pleasanton schools",'all=Pleasanton'); mySelect.options[mySelect.options.length] = new Option("San Leandro schools",'all=San_Leandro'); mySelect.options[mySelect.options.length] = new Option("San Lorenzo schools",'all=San_Lorenzo'); mySelect.options[mySelect.options.length] = new Option("San Ramon schools",'all=San_Ramon'); mySelect.options[mySelect.options.length] = new Option("Union City schools",'all=Union_City'); mySelect.options[mySelect.options.length] = new Option("---------------------------",''); Oakland[Oakland.length] = createMarker(new GPoint(-122.23462600,37.78281000),"
Agnes Memorial Christian Academy
2372 International Blvd
Oakland, CA 94601
Co-ed school, PK-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Agnes Memorial Christian Academy",'Oakland=' + Oakland.length); Fremont[Fremont.length] = createMarker(new GPoint(-121.92144800,37.53327500),"
Alsion Montessori Middle/High
155 Washington Boulevard
Fremont, CA 94539
Co-ed school, 7-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Alsion Montessori Middle/High",'Fremont=' + Fremont.length); Hayward[Hayward.length] = createMarker(new GPoint(-122.03498400,37.61799800),"
American Heritage Christian
425 Gresel St
Hayward, CA 94544
Co-ed school, K-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("American Heritage Christian",'Hayward=' + Hayward.length); Oakland[Oakland.length] = createMarker(new GPoint(-122.28231500,37.82055900),"
Asa Academy
2811 Adeline Street
Oakland, CA 94608
Co-ed school, 6-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Asa Academy",'Oakland=' + Oakland.length); Oakland[Oakland.length] = createMarker(new GPoint(-122.24101500,37.78073500),"
Beacon High School
2101 Livingston St.
Oakland, CA 94606
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Beacon High School",'Oakland=' + Oakland.length); Oakland[Oakland.length] = createMarker(new GPoint(-122.23324400,37.85319100),"
Bentley School
1 Hiller Drive
Oakland, CA 94618
Co-ed school, K-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Bentley School",'Oakland=' + Oakland.length); Berkeley[Berkeley.length] = createMarker(new GPoint(-122.28599600,37.86970300),"
Berkeley Montessori School
1310 University Avenue
Berkeley, CA 94702
Co-ed school, PK-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Berkeley Montessori School",'Berkeley=' + Berkeley.length); Oakland[Oakland.length] = createMarker(new GPoint(-122.15622200,37.75322400),"
Bishop O Dowd High School
9500 Stearns Avenue
Oakland, CA 94605
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Bishop O Dowd High School",'Oakland=' + Oakland.length); San_Ramon[San_Ramon.length] = createMarker(new GPoint(-121.97358700,37.75564900),"
Ca Christian Academy
2762 Derby Drive
San Ramon, CA 94583
Co-ed school, K-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Ca Christian Academy",'San_Ramon=' + San_Ramon.length); Oakland[Oakland.length] = createMarker(new GPoint(-122.16589600,37.77343000),"
Candell's College Preparatory School
7309 Greenly Drive
Oakland, CA 94605
Co-ed school, K-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Candell's College Preparatory School",'Oakland=' + Oakland.length); Livermore[Livermore.length] = createMarker(new GPoint(-121.73472500,37.70947000),"
Celebration Academy
1135 Bluebell Drive
Livermore, CA 94551
Co-ed school, K-10
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Celebration Academy",'Livermore=' + Livermore.length); Alameda[Alameda.length] = createMarker(new GPoint(-122.25346900,37.76868700),"
Children's Learning Center
1910 Central Avenue
Alameda, CA 94501
Co-ed school, K-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Children's Learning Center",'Alameda=' + Alameda.length); San_Leandro[San_Leandro.length] = createMarker(new GPoint(-122.14206300,37.68785100),"
Chinese Christian Schools
750 Fargo Avenue
San Leandro, CA 94579
Co-ed school, K-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Chinese Christian Schools",'San_Leandro=' + San_Leandro.length); Oakland[Oakland.length] = createMarker(new GPoint(-122.24343100,37.84772600),"
The College Preparatory School
6100 Broadway
Oakland, CA 94618
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("The College Preparatory School",'Oakland=' + Oakland.length); San_Leandro[San_Leandro.length] = createMarker(new GPoint(-122.13526600,37.68652000),"
Community Christian School
562 Lewelling Blvd
San Leandro, CA 94579
Co-ed school, K-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Community Christian School",'San_Leandro=' + San_Leandro.length); Pleasanton[Pleasanton.length] = createMarker(new GPoint(-121.86344300,37.69359600),"
Hacienda School
3800 Stoneridge Drive
Pleasanton, CA 94588
Co-ed school, NS-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Hacienda School",'Pleasanton=' + Pleasanton.length); Oakland[Oakland.length] = createMarker(new GPoint(-122.20477900,37.80819300),"
Head Royce School
4315 Lincoln Avenue
Oakland, CA 94602
Co-ed school, K-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Head Royce School",'Oakland=' + Oakland.length); Oakland[Oakland.length] = createMarker(new GPoint(-122.23163400,37.83900800),"
Holy Names High School
4660 Harbord Drive
Oakland, CA 94618
All-girls school, 9-12
[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Holy Names High School",'Oakland=' + Oakland.length); San_Leandro[San_Leandro.length] = createMarker(new GPoint(-122.11737500,37.70177800),"
International Bible Baptist Academy
15963 Marcella Street
San Leandro, CA 94578
Co-ed school, PK-10
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("International Bible Baptist Academy",'San_Leandro=' + San_Leandro.length); Berkeley[Berkeley.length] = createMarker(new GPoint(-122.30105900,37.86399800),"
La Cheim School
41 Bolivar Drive
Berkeley, CA 94710
Co-ed school, 4-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("La Cheim School",'Berkeley=' + Berkeley.length); Oakland[Oakland.length] = createMarker(new GPoint(-122.26109500,37.83903600),"
La Cheim School Oakland
5261 Claremont Avenue
Oakland, CA 94618
Co-ed school, 6-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("La Cheim School Oakland",'Oakland=' + Oakland.length); Hayward[Hayward.length] = createMarker(new GPoint(-122.11560000,37.67063400),"
Landmark Baptist School
573 Bartlett Avenue
Hayward, CA 94541
Co-ed school, 1-9
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Landmark Baptist School",'Hayward=' + Hayward.length); Pleasanton[Pleasanton.length] = createMarker(new GPoint(-121.93898500,37.70129400),"
Lighthouse Baptist School
118 Neal Street
Pleasanton, CA 94566
Co-ed school, K-11
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Lighthouse Baptist School",'Pleasanton=' + Pleasanton.length); San_Lorenzo[San_Lorenzo.length] = createMarker(new GPoint(-122.11904800,37.69760400),"
Lighthouse Christian Academy
16053 Ashland Avenue
San Lorenzo, CA 94580
Co-ed school, PK-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Lighthouse Christian Academy",'San_Lorenzo=' + San_Lorenzo.length); Berkeley[Berkeley.length] = createMarker(new GPoint(-122.25326800,37.86094600),"
Maybeck High School
2727 College Avenue
Berkeley, CA 94705
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Maybeck High School",'Berkeley=' + Berkeley.length); Fremont[Fremont.length] = createMarker(new GPoint(-121.95583400,37.52932500),"
Mission Peak Christian School
41354 Roberts Avenue
Fremont, CA 94538
Co-ed school, 1-9
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Mission Peak Christian School",'Fremont=' + Fremont.length); Hayward[Hayward.length] = createMarker(new GPoint(-122.06118100,37.64408500),"
Moreau Catholic High School
27170 Mission Blvd
Hayward, CA 94544
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Moreau Catholic High School",'Hayward=' + Hayward.length); Berkeley[Berkeley.length] = createMarker(new GPoint(-122.26831800,37.85601500),"
New Age Academy
2921 Adeline Street
Berkeley, CA 94703
Co-ed school, 5-10
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("New Age Academy",'Berkeley=' + Berkeley.length); Oakland[Oakland.length] = createMarker(new GPoint(-122.21930100,37.78610300),"
Patten Academy Of Christian Education
2433 Coolidge Avenue
Oakland, CA 94601
Co-ed school, K-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Patten Academy Of Christian Education",'Oakland=' + Oakland.length); Oakland[Oakland.length] = createMarker(new GPoint(-122.29766000,37.80582300),"
Pentecostal Way Of Truth Academy
1575 7th Street
Oakland, CA 94607
Co-ed school, K-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Pentecostal Way Of Truth Academy",'Oakland=' + Oakland.length); Union_City[Union_City.length] = createMarker(new GPoint(-122.02247200,37.59960000),"
Purple Lotus Internat Institut
33615 Ninth St.
Union City, CA 94587
Co-ed school, 1-11
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Purple Lotus Internat Institut",'Union_City=' + Union_City.length); Union_City[Union_City.length] = createMarker(new GPoint(-122.02250600,37.59964400),"
Purple Lotus School
33615 9th Street
Union City, CA 94587
Co-ed school, 1-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Purple Lotus School",'Union_City=' + Union_City.length); Dublin[Dublin.length] = createMarker(new GPoint(-121.87111500,37.72787700),"
The Quarry Lane School
6363 Tassajara Rd.
Dublin, CA 94568
Co-ed school, PK-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("The Quarry Lane School",'Dublin=' + Dublin.length); Oakland[Oakland.length] = createMarker(new GPoint(-122.18587700,37.79993900),"
Raskob Day School
3520 Mountain Blvd
Oakland, CA 94619
Co-ed school, 3-9
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Raskob Day School",'Oakland=' + Oakland.length); Oakland[Oakland.length] = createMarker(new GPoint(-122.18612800,37.75857200),"
Raymond Edward Mack Christian
7425 International Blvd
Oakland, CA 94621
Co-ed school, KG-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Raymond Edward Mack Christian",'Oakland=' + Oakland.length); San_Lorenzo[San_Lorenzo.length] = createMarker(new GPoint(-122.13507700,37.67655400),"
Redwood Christian Junior-Senior High School
1000 Paseo Grande
San Lorenzo, CA 94580
Co-ed school, 6-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Redwood Christian Junior-Senior High School",'San_Lorenzo=' + San_Lorenzo.length); Oakland[Oakland.length] = createMarker(new GPoint(-122.22112900,37.79782800),"
Redwood Day School
3245 Sheffield Avenue
Oakland, CA 94602
Co-ed school, K-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Redwood Day School",'Oakland=' + Oakland.length); Oakland[Oakland.length] = createMarker(new GPoint(-122.22268100,37.77863100),"
St. Elizabeth High School
1530 34th Avenue
Oakland, CA 94601
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("St. Elizabeth High School",'Oakland=' + Oakland.length); Alameda[Alameda.length] = createMarker(new GPoint(-122.25517500,37.76526700),"
St. Joseph Notre Dame High School
1011 Chestnut Street
Alameda, CA 94501
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("St. Joseph Notre Dame High School",'Alameda=' + Alameda.length); Berkeley[Berkeley.length] = createMarker(new GPoint(-122.28385000,37.88199000),"
St. Mary's College High School
1294 Albina Avenue
Berkeley, CA 94706
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("St. Mary's College High School",'Berkeley=' + Berkeley.length); Oakland[Oakland.length] = createMarker(new GPoint(-122.26001900,37.81134700),"
St. Paul's Episcopal School
116 Montecito Ave
Oakland, CA 94610
Co-ed school, K-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("St. Paul's Episcopal School",'Oakland=' + Oakland.length); Dublin[Dublin.length] = createMarker(new GPoint(-121.93693500,37.72365800),"
St. Philip Lutheran School
8850 Davona Drive
Dublin, CA 94568
Co-ed school, PK-8
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("St. Philip Lutheran School",'Dublin=' + Dublin.length); San_Leandro[San_Leandro.length] = createMarker(new GPoint(-122.11148200,37.70863800),"
Seneca Center
2275 Arlington Drive
San Leandro, CA 94578
Co-ed school, 1-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Seneca Center",'San_Leandro=' + San_Leandro.length); Livermore[Livermore.length] = createMarker(new GPoint(-121.78490200,37.66586600),"
Sequoia Christian
1350 Wagoner Drive
Livermore, CA 94550
Co-ed school, 3-11
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Sequoia Christian",'Livermore=' + Livermore.length); Oakland[Oakland.length] = createMarker(new GPoint(-122.18259100,37.77270600),"
Spectrum Center
6325 Camden St
Oakland, CA 94605
Co-ed school, NS-NS
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Spectrum Center",'Oakland=' + Oakland.length); Oakland[Oakland.length] = createMarker(new GPoint(-122.26948000,37.80992000),"
St Andrew Missionary Baptist Church Pvt School
Po Box 70378
Oakland, CA 94612
Co-ed school, PK-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("St Andrew Missionary Baptist Church Pvt School",'Oakland=' + Oakland.length); San_Leandro[San_Leandro.length] = createMarker(new GPoint(-122.12079000,37.71069300),"
Stars High School
545 Estudillo Avenue
San Leandro, CA 94577
Co-ed school, 9-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Stars High School",'San_Leandro=' + San_Leandro.length); Union_City[Union_City.length] = createMarker(new GPoint(-122.03403500,37.59092900),"
Union City Christian Academy
33700 Alvarado Niles Road
Union City, CA 94587
Co-ed school, K-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Union City Christian Academy",'Union_City=' + Union_City.length); Dublin[Dublin.length] = createMarker(new GPoint(-121.95449500,37.69954700),"
Valley Christian Jr/Sr High School
7500 Inspiration Drive
Dublin, CA 94568
Co-ed school, 7-12
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Valley Christian Jr/Sr High School",'Dublin=' + Dublin.length); Berkeley[Berkeley.length] = createMarker(new GPoint(-122.29730700,37.86623200),"
Via Center
2126 Sixth Street
Berkeley, CA 94710
Co-ed school, NS-NS
[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Via Center",'Berkeley=' + Berkeley.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(Alameda); map.removeOverlays(Berkeley); map.removeOverlays(Dublin); map.removeOverlays(Fremont); map.removeOverlays(Hayward); map.removeOverlays(Livermore); map.removeOverlays(Oakland); map.removeOverlays(Pleasanton); map.removeOverlays(San_Leandro); map.removeOverlays(San_Lorenzo); map.removeOverlays(San_Ramon); map.removeOverlays(Union_City); 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(Oakland);map.removeOverlays(Alameda); map.removeOverlays(Berkeley); map.removeOverlays(Dublin); map.removeOverlays(Fremont); map.removeOverlays(Hayward); map.removeOverlays(Livermore); map.removeOverlays(Oakland); map.removeOverlays(Pleasanton); map.removeOverlays(San_Leandro); map.removeOverlays(San_Lorenzo); map.removeOverlays(San_Ramon); map.removeOverlays(Union_City); map.addOverlays(Alameda); centerByArray(Alameda, false, false); cntMarker += Alameda.length; map.addOverlays(Berkeley); centerByArray(Berkeley, false, false); cntMarker += Berkeley.length; map.addOverlays(Dublin); centerByArray(Dublin, false, false); cntMarker += Dublin.length; map.addOverlays(Fremont); centerByArray(Fremont, false, false); cntMarker += Fremont.length; map.addOverlays(Hayward); centerByArray(Hayward, false, false); cntMarker += Hayward.length; map.addOverlays(Livermore); centerByArray(Livermore, false, false); cntMarker += Livermore.length; map.addOverlays(Oakland); centerByArray(Oakland, false, false); cntMarker += Oakland.length; map.addOverlays(Pleasanton); centerByArray(Pleasanton, false, false); cntMarker += Pleasanton.length; map.addOverlays(San_Leandro); centerByArray(San_Leandro, false, false); cntMarker += San_Leandro.length; map.addOverlays(San_Lorenzo); centerByArray(San_Lorenzo, false, false); cntMarker += San_Lorenzo.length; map.addOverlays(San_Ramon); centerByArray(San_Ramon, false, false); cntMarker += San_Ramon.length; map.addOverlays(Union_City); centerByArray(Union_City, false, false); cntMarker += Union_City.length; centerByArray(Oakland,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; }