function addMarkers() { mySelect = document.getElementById('selection'); Shreveport = [];Shreveport[Shreveport.length] = createMarker(new GPoint(-93.72198486,32.46688080),"
A. C. Steere Elementary School
4009 Youree Drive
Shreveport, LA 71105

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("A. C. Steere Elementary School",'Shreveport=' + Shreveport.length); Shreveport[Shreveport.length] = createMarker(new GPoint(-93.74575806,32.44670105),"
Alexander Learning Center
1545 Coty Street
Shreveport, LA 71101

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Alexander Learning Center",'Shreveport=' + Shreveport.length); Shreveport[Shreveport.length] = createMarker(new GPoint(-93.71958160,32.45945358),"
Arthur Circle Elementary School
261 Arthur Avenue
Shreveport, LA 71105

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Arthur Circle Elementary School",'Shreveport=' + Shreveport.length); Shreveport[Shreveport.length] = createMarker(new GPoint(-93.75863647,32.43558121),"
Atkins Elementary School
7611 Saint Vincent Avenue
Shreveport, LA 71106

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Atkins Elementary School",'Shreveport=' + Shreveport.length); Shreveport[Shreveport.length] = createMarker(new GPoint(-93.75228119,32.48685074),"
Barret Elementary School
2600 Barret Street
Shreveport, LA 71104

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Barret Elementary School",'Shreveport=' + Shreveport.length); Shreveport[Shreveport.length] = createMarker(new GPoint(-93.81217194,32.46405411),"
Bethune Middle School
4331 Henry Street
Shreveport, LA 71109

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Bethune Middle School",'Shreveport=' + Shreveport.length); Shreveport[Shreveport.length] = createMarker(new GPoint(-93.89503479,32.57683945),"
Blanchard Elementary School
402 Birch Avenue
Shreveport, LA 71107

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Blanchard Elementary School",'Shreveport=' + Shreveport.length); Shreveport[Shreveport.length] = createMarker(new GPoint(-93.77384186,32.50355148),"
Booker T. Washington High School
2104 Milam Street
Shreveport, LA 71103

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Booker T. Washington High School",'Shreveport=' + Shreveport.length); Shreveport[Shreveport.length] = createMarker(new GPoint(-93.77748871,32.54711914),"
Bossier Parish Technical School
2010 North Market Street
Shreveport, LA 71107

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Bossier Parish Technical School",'Shreveport=' + Shreveport.length); Shreveport[Shreveport.length] = createMarker(new GPoint(-93.73270416,32.46329117),"
Broadmoor Middle Laboratory School
441 Atlantic Street
Shreveport, LA 71105

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Broadmoor Middle Laboratory School",'Shreveport=' + Shreveport.length); Shreveport[Shreveport.length] = createMarker(new GPoint(-93.74607849,32.48015213),"
C.e. Byrd High School
3201 Line Avenue
Shreveport, LA 71104

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("C.e. Byrd High School",'Shreveport=' + Shreveport.length); Shreveport[Shreveport.length] = createMarker(new GPoint(-93.77165985,32.45378113),"
Caddo Career Center
5950 Union Avenue
Shreveport, LA 71108

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Caddo Career Center",'Shreveport=' + Shreveport.length); Shreveport[Shreveport.length] = createMarker(new GPoint(-93.76452637,32.46365356),"
Caddo Heights Elementary School
1702 Corbitt Street
Shreveport, LA 71108

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Caddo Heights Elementary School",'Shreveport=' + Shreveport.length); Shreveport[Shreveport.length] = createMarker(new GPoint(-93.89215900,32.58144500),"
Caddo Learning Center
2550 Thomas E. Howard Drive
Shreveport, LA 71107

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Caddo Learning Center",'Shreveport=' + Shreveport.length); Shreveport[Shreveport.length] = createMarker(new GPoint(-93.76946259,32.44822311),"
Caddo Middle Career And Technology School
6310 Clift Street
Shreveport, LA 71106

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Caddo Middle Career And Technology School",'Shreveport=' + Shreveport.length); Shreveport[Shreveport.length] = createMarker(new GPoint(-93.72013855,32.49615479),"
Caddo Parish Magnet High School
1601 Viking Drive
Shreveport, LA 71101

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Caddo Parish Magnet High School",'Shreveport=' + Shreveport.length); Shreveport[Shreveport.length] = createMarker(new GPoint(-93.74419403,32.43592834),"
Caddo Parish Middle Magnet School
7635 Cornelious Drive
Shreveport, LA 71106

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Caddo Parish Middle Magnet School",'Shreveport=' + Shreveport.length); Shreveport[Shreveport.length] = createMarker(new GPoint(-93.75875854,32.48003387),"
Caddo School For Exceptional Children
3202 William Avenue
Shreveport, LA 71103

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Caddo School For Exceptional Children",'Shreveport=' + Shreveport.length); Shreveport[Shreveport.length] = createMarker(new GPoint(-93.70938110,32.45110703),"
Captain Shreve High School
6115 East Kings Highway
Shreveport, LA 71105

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Captain Shreve High School",'Shreveport=' + Shreveport.length); Shreveport[Shreveport.length] = createMarker(new GPoint(-93.76363373,32.50085068),"
Central Elementary School
1627 Weinstock Street
Shreveport, LA 71103

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Central Elementary School",'Shreveport=' + Shreveport.length); Shreveport[Shreveport.length] = createMarker(new GPoint(-93.75947571,32.54251099),"
Cherokee Park Elementary School
2010 East Algonquin Trail
Shreveport, LA 71107

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Cherokee Park Elementary School",'Shreveport=' + Shreveport.length); Shreveport[Shreveport.length] = createMarker(new GPoint(-93.77466583,32.47805405),"
Claiborne Fundamental Elementary School
2345 Claiborne Avenue
Shreveport, LA 71103

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Claiborne Fundamental Elementary School",'Shreveport=' + Shreveport.length); Shreveport[Shreveport.length] = createMarker(new GPoint(-93.74177551,32.48345184),"
Creswell Elementary School
2901 Creswell Avenue
Shreveport, LA 71104

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Creswell Elementary School",'Shreveport=' + Shreveport.length); Shreveport[Shreveport.length] = createMarker(new GPoint(-93.87306213,32.60873413),"
Donnie Bickham Middle School
7240 Old Mooringsport Road
Shreveport, LA 71107

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Donnie Bickham Middle School",'Shreveport=' + Shreveport.length); Shreveport[Shreveport.length] = createMarker(new GPoint(-93.72079468,32.49175262),"
E.b. Williams Stoner Hill Elementary Lab School
2127 C E Galloway Boulevard
Shreveport, LA 71104

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("E.b. Williams Stoner Hill Elementary Lab School",'Shreveport=' + Shreveport.length); Shreveport[Shreveport.length] = createMarker(new GPoint(-93.74337769,32.43049622),"
Eden Gardens Fundamental Elementary School
626 Eden Boulevard
Shreveport, LA 71106

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Eden Gardens Fundamental Elementary School",'Shreveport=' + Shreveport.length); Shreveport[Shreveport.length] = createMarker(new GPoint(-93.75006866,32.43067932),"
Eighty-first Street Ece Center
8108 Fairfield Avenue
Shreveport, LA 71106

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Eighty-first Street Ece Center",'Shreveport=' + Shreveport.length); Shreveport[Shreveport.length] = createMarker(new GPoint(-93.78882599,32.47901917),"
Fair Park High School
3222 Greenwood Road
Shreveport, LA 71109

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Fair Park High School",'Shreveport=' + Shreveport.length); Shreveport[Shreveport.length] = createMarker(new GPoint(-93.74997711,32.44923782),"
Fairfield Magnet School
6215 Fairfield Avenue
Shreveport, LA 71106

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Fairfield Magnet School",'Shreveport=' + Shreveport.length); Shreveport[Shreveport.length] = createMarker(new GPoint(-93.78997803,32.39410400),"
Forest Hill Elementary School
2005 Francais Drive
Shreveport, LA 71118

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Forest Hill Elementary School",'Shreveport=' + Shreveport.length); Shreveport[Shreveport.length] = createMarker(new GPoint(-93.81401062,32.55405045),"
Green Oaks High School
2550 Thomas E. Howard Drive
Shreveport, LA 71107

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Green Oaks High School",'Shreveport=' + Shreveport.length); Shreveport[Shreveport.length] = createMarker(new GPoint(-93.74493408,32.50193787),"
Hamilton Terrace Learning Center
1105 Louisiana Avenue
Shreveport, LA 71101

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Hamilton Terrace Learning Center",'Shreveport=' + Shreveport.length); Shreveport[Shreveport.length] = createMarker(new GPoint(-93.82472992,32.47370529),"
Hillsdale Elementary School
3860 Hutchinson Street
Shreveport, LA 71109

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Hillsdale Elementary School",'Shreveport=' + Shreveport.length); Shreveport[Shreveport.length] = createMarker(new GPoint(-93.85818481,32.44391632),"
Huntington High School
6801 Rasberry Lane
Shreveport, LA 71129

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Huntington High School",'Shreveport=' + Shreveport.length); Shreveport[Shreveport.length] = createMarker(new GPoint(-93.75102234,32.52534866),"
Ingersoll Elementary School
401 North Holzman Street
Shreveport, LA 71101

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Ingersoll Elementary School",'Shreveport=' + Shreveport.length); Shreveport[Shreveport.length] = createMarker(new GPoint(-93.78028107,32.50915146),"
J. S. Clark Middle School
351 Hearne Avenue
Shreveport, LA 71103

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("J. S. Clark Middle School",'Shreveport=' + Shreveport.length); Shreveport[Shreveport.length] = createMarker(new GPoint(-93.97512054,32.54804993),"
Jack P. Timmons Elementary School
1410 Greenwood-mooringsport Rd
Shreveport, LA 71107

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Jack P. Timmons Elementary School",'Shreveport=' + Shreveport.length); Shreveport[Shreveport.length] = createMarker(new GPoint(-93.79929352,32.48850632),"
Judson Fundamental Elementary School
3809 Judson Street
Shreveport, LA 71109

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Judson Fundamental Elementary School",'Shreveport=' + Shreveport.length); Shreveport[Shreveport.length] = createMarker(new GPoint(-93.79297638,32.49439621),"
Lakeshore Elementary School
1807 San Jacinto Street
Shreveport, LA 71109

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Lakeshore Elementary School",'Shreveport=' + Shreveport.length); Shreveport[Shreveport.length] = createMarker(new GPoint(-93.81568146,32.54634094),"
Linear Middle School
1845 Linear Street
Shreveport, LA 71107

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Linear Middle School",'Shreveport=' + Shreveport.length); Shreveport[Shreveport.length] = createMarker(new GPoint(-93.76297760,32.44185257),"
Linwood Middle School
401 West Seventieth Street
Shreveport, LA 71106

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Linwood Middle School",'Shreveport=' + Shreveport.length); Shreveport[Shreveport.length] = createMarker(new GPoint(-93.80381775,32.47170639),"
Midway Professional Development Center
3840 Greenwood Road
Shreveport, LA 71109

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Midway Professional Development Center",'Shreveport=' + Shreveport.length); Shreveport[Shreveport.length] = createMarker(new GPoint(-93.80183411,32.45275116),"
Mooretown Elementary Professional Develop. School
3913 Powell Street
Shreveport, LA 71109

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Mooretown Elementary Professional Develop. School",'Shreveport=' + Shreveport.length); Shreveport[Shreveport.length] = createMarker(new GPoint(-93.82896423,32.54373550),"
Newton Smith Elementary School
3000 Martin Luther King Jr Dr
Shreveport, LA 71107

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Newton Smith Elementary School",'Shreveport=' + Shreveport.length); Shreveport[Shreveport.length] = createMarker(new GPoint(-93.78250122,32.57304764),"
North Highlands Elementary School
885 Poleman Road
Shreveport, LA 71107

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("North Highlands Elementary School",'Shreveport=' + Shreveport.length); Shreveport[Shreveport.length] = createMarker(new GPoint(-93.79817963,32.54178619),"
Northside Elementary School
1950 Northside Road
Shreveport, LA 71107

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Northside Elementary School",'Shreveport=' + Shreveport.length); Shreveport[Shreveport.length] = createMarker(new GPoint(-93.84329224,32.60206604),"
Northwood High School
5939 Old Mooringsport Road
Shreveport, LA 71107

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Northwood High School",'Shreveport=' + Shreveport.length); Shreveport[Shreveport.length] = createMarker(new GPoint(-93.82018280,32.46037674),"
Oak Park Elementary School
4941 Mcdaniel Street
Shreveport, LA 71109

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Oak Park Elementary School",'Shreveport=' + Shreveport.length); Shreveport[Shreveport.length] = createMarker(new GPoint(-93.79336548,32.44502258),"
Oak Terrace/j.b. Harville Alternative School
6660 Quilen Road
Shreveport, LA 71108

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Oak Terrace/j.b. Harville Alternative School",'Shreveport=' + Shreveport.length); Shreveport[Shreveport.length] = createMarker(new GPoint(-93.81478119,32.55048752),"
Pine Grove Elementary School
1700 Caldwell Street
Shreveport, LA 71107

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Pine Grove Elementary School",'Shreveport=' + Shreveport.length); Shreveport[Shreveport.length] = createMarker(new GPoint(-93.78018188,32.48665237),"
Queensborough Elementary School
2701 Catherine Street
Shreveport, LA 71109

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Queensborough Elementary School",'Shreveport=' + Shreveport.length); Shreveport[Shreveport.length] = createMarker(new GPoint(-93.78938293,32.39975357),"
Ridgewood Middle School
2001 Ridgewood Drive
Shreveport, LA 71118

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Ridgewood Middle School",'Shreveport=' + Shreveport.length); Shreveport[Shreveport.length] = createMarker(new GPoint(-93.76770020,32.48809814),"
Right Step Academy Of Excellence
P O Box 36831
Shreveport, LA 71133

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Right Step Academy Of Excellence",'Shreveport=' + Shreveport.length); Shreveport[Shreveport.length] = createMarker(new GPoint(-93.69447327,32.45775223),"
Riverside Elementary School
625 Dixie Garden Drive
Shreveport, LA 71105

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Riverside Elementary School",'Shreveport=' + Shreveport.length); Shreveport[Shreveport.length] = createMarker(new GPoint(-93.71172333,32.47843933),"
Shreve Island Elementary School
836 Sewanne Place
Shreveport, LA 71105

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Shreve Island Elementary School",'Shreveport=' + Shreveport.length); Shreveport[Shreveport.length] = createMarker(new GPoint(-93.78272247,32.49176407),"
Shreveport Job Corps Opportunity Center
2815 Lillian Street
Shreveport, LA 71109

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Shreveport Job Corps Opportunity Center",'Shreveport=' + Shreveport.length); Shreveport[Shreveport.length] = createMarker(new GPoint(-93.73844147,32.46043777),"
South Highlands Elementary Magnet School
831 Erie Street
Shreveport, LA 71106

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("South Highlands Elementary Magnet School",'Shreveport=' + Shreveport.length); Shreveport[Shreveport.length] = createMarker(new GPoint(-93.78008270,32.40291977),"
Southern Hills Elementary School
9075 Kingston Road
Shreveport, LA 71118

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Southern Hills Elementary School",'Shreveport=' + Shreveport.length); Shreveport[Shreveport.length] = createMarker(new GPoint(-93.81448364,32.41045380),"
Southwood High School
9000 Walker Road
Shreveport, LA 71118

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Southwood High School",'Shreveport=' + Shreveport.length); Shreveport[Shreveport.length] = createMarker(new GPoint(-93.80809784,32.40206146),"
Summer Grove Elementary School
2955 Bert Kouns Industrial Lp
Shreveport, LA 71118

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Summer Grove Elementary School",'Shreveport=' + Shreveport.length); Shreveport[Shreveport.length] = createMarker(new GPoint(-93.81741333,32.38620758),"
Summerfield Elementary School
3131 Ardis Taylor Drive
Shreveport, LA 71118

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Summerfield Elementary School",'Shreveport=' + Shreveport.length); Shreveport[Shreveport.length] = createMarker(new GPoint(-93.78603363,32.44775391),"
Sunset Acres Elementary School
6514 West Canal Boulevard
Shreveport, LA 71108

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Sunset Acres Elementary School",'Shreveport=' + Shreveport.length); Shreveport[Shreveport.length] = createMarker(new GPoint(-93.85537720,32.44233704),"
Turner Elementary Middle School
5904 West Seventieth Street
Shreveport, LA 71129

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Turner Elementary Middle School",'Shreveport=' + Shreveport.length); Shreveport[Shreveport.length] = createMarker(new GPoint(-93.70271301,32.41405487),"
University Elementary School
9900 Smitherman Drive
Shreveport, LA 71115

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("University Elementary School",'Shreveport=' + Shreveport.length); Shreveport[Shreveport.length] = createMarker(new GPoint(-93.90013123,32.39080429),"
Walnut Hill Elementary Middle School
9360 Woolworth Road
Shreveport, LA 71129

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Walnut Hill Elementary Middle School",'Shreveport=' + Shreveport.length); Shreveport[Shreveport.length] = createMarker(new GPoint(-93.78005981,32.46355438),"
Werner Park Elementary School
2715 Corbitt Street
Shreveport, LA 71108

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Werner Park Elementary School",'Shreveport=' + Shreveport.length); Shreveport[Shreveport.length] = createMarker(new GPoint(-93.77557373,32.50019455),"
West Shreveport Elementary School
2226 Murphy Street
Shreveport, LA 71103

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("West Shreveport Elementary School",'Shreveport=' + Shreveport.length); Shreveport[Shreveport.length] = createMarker(new GPoint(-93.79713440,32.43637848),"
Westwood Elementary School
7325 Jewella Avenue
Shreveport, LA 71108

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Westwood Elementary School",'Shreveport=' + Shreveport.length); Shreveport[Shreveport.length] = createMarker(new GPoint(-93.77375793,32.43717194),"
Woodlawn High School
7340 Wyngate Drive
Shreveport, LA 71106

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Woodlawn High School",'Shreveport=' + Shreveport.length); Shreveport[Shreveport.length] = createMarker(new GPoint(-93.72225952,32.45288849),"
Youree Drive Middle School
6008 Youree Drive
Shreveport, LA 71105

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Youree Drive Middle School",'Shreveport=' + Shreveport.length); maxLng = -93.69447327; maxLat = 32.60873413; minLng = -93.97512054; minLat = 32.38620758; reCenterMap(); } // 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,10); /* 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(Shreveport); 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(Shreveport);map.removeOverlays(Shreveport); map.addOverlays(Shreveport); centerByArray(Shreveport, false, false); cntMarker += Shreveport.length; centerByArray(Shreveport,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'); } }