function addMarkers() { mySelect = document.getElementById('selection'); Beaverton = [];Aloha = [];Sherwood = [];Banks = [];Hillsboro = [];Tigard = [];Cornelius = [];Forest_Grove = [];Tualatin = [];Gales_Creek = [];Gaston = [];North_Plains = [];mySelect.options[mySelect.options.length] = new Option("Aloha schools",'all=Aloha'); mySelect.options[mySelect.options.length] = new Option("Banks schools",'all=Banks'); mySelect.options[mySelect.options.length] = new Option("Beaverton schools",'all=Beaverton'); mySelect.options[mySelect.options.length] = new Option("Cornelius schools",'all=Cornelius'); mySelect.options[mySelect.options.length] = new Option("Forest Grove schools",'all=Forest_Grove'); mySelect.options[mySelect.options.length] = new Option("Gales Creek schools",'all=Gales_Creek'); mySelect.options[mySelect.options.length] = new Option("Gaston schools",'all=Gaston'); mySelect.options[mySelect.options.length] = new Option("Hillsboro schools",'all=Hillsboro'); mySelect.options[mySelect.options.length] = new Option("North Plains schools",'all=North_Plains'); mySelect.options[mySelect.options.length] = new Option("Sherwood schools",'all=Sherwood'); mySelect.options[mySelect.options.length] = new Option("Tigard schools",'all=Tigard'); mySelect.options[mySelect.options.length] = new Option("Tualatin schools",'all=Tualatin'); mySelect.options[mySelect.options.length] = new Option("---------------------------",''); Beaverton[Beaverton.length] = createMarker(new GPoint(-122.86804962,45.48568344),"
Aloha High School
18550 Sw Kinnaman Rd
Beaverton, OR 97007

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Aloha High School",'Beaverton=' + Beaverton.length); Aloha[Aloha.length] = createMarker(new GPoint(-122.86009216,45.49121857),"
Aloha Park Elementary School
17770 Sw Blanton St
Aloha, OR 97007

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Aloha Park Elementary School",'Aloha=' + Aloha.length); Sherwood[Sherwood.length] = createMarker(new GPoint(-122.84430695,45.34983826),"
Archer Glen Elementary School
16155 Sw Sunset Blvd
Sherwood, OR 97140

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Archer Glen Elementary School",'Sherwood=' + Sherwood.length); Beaverton[Beaverton.length] = createMarker(new GPoint(-122.79430389,45.49386978),"
Arts & Communication High School
11375 Sw Center St
Beaverton, OR 97005

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Arts & Communication High School",'Beaverton=' + Beaverton.length); Beaverton[Beaverton.length] = createMarker(new GPoint(-122.79430389,45.49386978),"
Arts & Communication Middle School
11375 Sw Center St
Beaverton, OR 97005

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Arts & Communication Middle School",'Beaverton=' + Beaverton.length); Banks[Banks.length] = createMarker(new GPoint(-123.11382294,45.61219025),"
Banks Elementary School
42350 Nw Trellis Way
Banks, OR 97106

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Banks Elementary School",'Banks=' + Banks.length); Banks[Banks.length] = createMarker(new GPoint(-123.11422729,45.61410141),"
Banks High School
450 S Main St
Banks, OR 97106

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Banks High School",'Banks=' + Banks.length); Banks[Banks.length] = createMarker(new GPoint(-123.11422729,45.61410141),"
Banks Junior High School
450 S Main St
Banks, OR 97106

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Banks Junior High School",'Banks=' + Banks.length); Beaverton[Beaverton.length] = createMarker(new GPoint(-122.81835175,45.50666809),"
Barnes Elementary School
13730 Sw Walker Rd
Beaverton, OR 97005

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Barnes Elementary School",'Beaverton=' + Beaverton.length); Beaverton[Beaverton.length] = createMarker(new GPoint(-122.85209656,45.50456619),"
Beaver Acres Elementary School
2125 Sw 170th Ave
Beaverton, OR 97005

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Beaver Acres Elementary School",'Beaverton=' + Beaverton.length); Beaverton[Beaverton.length] = createMarker(new GPoint(-122.81219482,45.48626709),"
Beaverton High School
13000 Sw Second St
Beaverton, OR 97005

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Beaverton High School",'Beaverton=' + Beaverton.length); Beaverton[Beaverton.length] = createMarker(new GPoint(-122.85619354,45.54360580),"
Bethany Elementary School
3305 Nw 174th Ave
Beaverton, OR 97006

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Bethany Elementary School",'Beaverton=' + Beaverton.length); Hillsboro[Hillsboro.length] = createMarker(new GPoint(-122.94145966,45.51596451),"
Brookwood Elementary School
3960 Se Cedar St
Hillsboro, OR 97123

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Brookwood Elementary School",'Hillsboro=' + Hillsboro.length); Aloha[Aloha.length] = createMarker(new GPoint(-122.88779449,45.48699570),"
Butternut Creek Elementary School
20395 Sw Florence St
Aloha, OR 97007

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Butternut Creek Elementary School",'Aloha=' + Aloha.length); Hillsboro[Hillsboro.length] = createMarker(new GPoint(-122.91641998,45.50465393),"
Century High School
2000 Se Century Blvd
Hillsboro, OR 97123

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Century High School",'Hillsboro=' + Hillsboro.length); Tigard[Tigard.length] = createMarker(new GPoint(-122.78142548,45.42696762),"
Charles F Tigard Elementary School
12850 Sw Grant St
Tigard, OR 97223

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Charles F Tigard Elementary School",'Tigard=' + Tigard.length); Beaverton[Beaverton.length] = createMarker(new GPoint(-122.83788300,45.47523499),"
Chehalem Elementary School
15555 Sw Davis Rd
Beaverton, OR 97007

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Chehalem Elementary School",'Beaverton=' + Beaverton.length); Hillsboro[Hillsboro.length] = createMarker(new GPoint(-122.93804700,45.53268500),"
City View Charter School
Po Box 1808
Hillsboro, OR 97123

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("City View Charter School",'Hillsboro=' + Hillsboro.length); Beaverton[Beaverton.length] = createMarker(new GPoint(-122.84783173,45.50660706),"
Community School
1841 Sw Merlo Dr
Beaverton, OR 97006

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Community School",'Beaverton=' + Beaverton.length); Beaverton[Beaverton.length] = createMarker(new GPoint(-122.80326843,45.44754028),"
Conestoga Middle School
12250 Sw Conestoga Dr
Beaverton, OR 97008

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Conestoga Middle School",'Beaverton=' + Beaverton.length); Beaverton[Beaverton.length] = createMarker(new GPoint(-122.85160065,45.46444321),"
Cooper Mountain Elementary School
7670 Sw 170th Ave
Beaverton, OR 97007

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Cooper Mountain Elementary School",'Beaverton=' + Beaverton.length); Cornelius[Cornelius.length] = createMarker(new GPoint(-123.05440521,45.52193832),"
Cornelius Elementary School
200 N 14th Ave
Cornelius, OR 97113

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Cornelius Elementary School",'Cornelius=' + Cornelius.length); Hillsboro[Hillsboro.length] = createMarker(new GPoint(-122.98367310,45.51866150),"
David Hill Elementary School
440 Se Oak St
Hillsboro, OR 97123

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("David Hill Elementary School",'Hillsboro=' + Hillsboro.length); Tigard[Tigard.length] = createMarker(new GPoint(-122.81217194,45.40270615),"
Deer Creek Elementary School
16155 Sw 131st Ave
Tigard, OR 97224

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Deer Creek Elementary School",'Tigard=' + Tigard.length); Forest_Grove[Forest_Grove.length] = createMarker(new GPoint(-123.12729645,45.49066544),"
Dilley Elementary School
4115 Sw Dilley Rd
Forest Grove, OR 97116

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Dilley Elementary School",'Forest_Grove=' + Forest_Grove.length); Tigard[Tigard.length] = createMarker(new GPoint(-122.76116180,45.40286255),"
Durham Elementary School
8048 Sw Shaffer Ln
Tigard, OR 97224

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Durham Elementary School",'Tigard=' + Tigard.length); Hillsboro[Hillsboro.length] = createMarker(new GPoint(-122.96100616,45.52326202),"
Eastwood Elementary School
2100 Ne Lincoln St
Hillsboro, OR 97124

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Eastwood Elementary School",'Hillsboro=' + Hillsboro.length); Cornelius[Cornelius.length] = createMarker(new GPoint(-123.06188965,45.51143646),"
Echo Shaw Elementary School
914 S Linden St
Cornelius, OR 97113

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Echo Shaw Elementary School",'Cornelius=' + Cornelius.length); Tualatin[Tualatin.length] = createMarker(new GPoint(-122.77010345,45.36345291),"
Edward Byrom Elementary School
21800 Sw 91st Ave
Tualatin, OR 97062

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Edward Byrom Elementary School",'Tualatin=' + Tualatin.length); Beaverton[Beaverton.length] = createMarker(new GPoint(-122.85190582,45.51636124),"
Elmonica Elementary School
16950 Sw Lisa Ct
Beaverton, OR 97006

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Elmonica Elementary School",'Beaverton=' + Beaverton.length); Beaverton[Beaverton.length] = createMarker(new GPoint(-122.86309052,45.46690750),"
Errol Hassell Elementary School
18100 Sw Bany Rd
Beaverton, OR 97007

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Errol Hassell Elementary School",'Beaverton=' + Beaverton.length); Hillsboro[Hillsboro.length] = createMarker(new GPoint(-122.98422241,45.54979324),"
Evergreen Junior High School
29850 Nw Evergreen Rd
Hillsboro, OR 97124

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Evergreen Junior High School",'Hillsboro=' + Hillsboro.length); Hillsboro[Hillsboro.length] = createMarker(new GPoint(-122.99202728,45.46060944),"
Farmington View Elementary School
8300 Sw Hillsboro Hwy
Hillsboro, OR 97123

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Farmington View Elementary School",'Hillsboro=' + Hillsboro.length); Forest_Grove[Forest_Grove.length] = createMarker(new GPoint(-123.15579987,45.55270004),"
Fern Hill Elementary School
4445 Heather St
Forest Grove, OR 97116

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Fern Hill Elementary School",'Forest_Grove=' + Forest_Grove.length); Beaverton[Beaverton.length] = createMarker(new GPoint(-122.81882477,45.47423172),"
Fir Grove Elementary School
6300 Sw Wilson Ave
Beaverton, OR 97008

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Fir Grove Elementary School",'Beaverton=' + Beaverton.length); Beaverton[Beaverton.length] = createMarker(new GPoint(-122.85449982,45.53038788),"
Five Oaks Middle School
1600 Nw 173rd Ave
Beaverton, OR 97006

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Five Oaks Middle School",'Beaverton=' + Beaverton.length); Forest_Grove[Forest_Grove.length] = createMarker(new GPoint(-123.12387848,45.53393555),"
Forest Grove High School
1401 Nichols Ln
Forest Grove, OR 97116

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Forest Grove High School",'Forest_Grove=' + Forest_Grove.length); Gales_Creek[Gales_Creek.length] = createMarker(new GPoint(-123.21536255,45.58605194),"
Gales Creek Elementary School
9125 Nw Sargent Rd
Gales Creek, OR 97117

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Gales Creek Elementary School",'Gales_Creek=' + Gales_Creek.length); Gaston[Gaston.length] = createMarker(new GPoint(-123.19930267,45.45370102),"
Gaston Elementary School
Po Box 68
Gaston, OR 97119

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Gaston Elementary School",'Gaston=' + Gaston.length); Gaston[Gaston.length] = createMarker(new GPoint(-123.19930267,45.45370102),"
Gaston Jr/sr High School
Po Box 68
Gaston, OR 97119

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Gaston Jr/sr High School",'Gaston=' + Gaston.length); Hillsboro[Hillsboro.length] = createMarker(new GPoint(-122.99549866,45.54163361),"
Glencoe High School
2700 Nw Glencoe Rd
Hillsboro, OR 97124

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Glencoe High School",'Hillsboro=' + Hillsboro.length); Beaverton[Beaverton.length] = createMarker(new GPoint(-122.80280304,45.45404053),"
Greenway Elementary School
9150 Sw Downing Dr
Beaverton, OR 97008

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Greenway Elementary School",'Beaverton=' + Beaverton.length); Hillsboro[Hillsboro.length] = createMarker(new GPoint(-122.91824341,45.42106247),"
Groner Elementary School
23405 Sw Scholls Ferry Rd
Hillsboro, OR 97123

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Groner Elementary School",'Hillsboro=' + Hillsboro.length); Forest_Grove[Forest_Grove.length] = createMarker(new GPoint(-123.11579132,45.52645493),"
Harvey Clarke Elementary School
2516 N B St
Forest Grove, OR 97116

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Harvey Clarke Elementary School",'Forest_Grove=' + Forest_Grove.length); Tualatin[Tualatin.length] = createMarker(new GPoint(-122.79282379,45.39369583),"
Hazelbrook Middle School
11300 Sw Hazelbrook Rd
Tualatin, OR 97062

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Hazelbrook Middle School",'Tualatin=' + Tualatin.length); Aloha[Aloha.length] = createMarker(new GPoint(-122.88404846,45.46941376),"
Hazeldale Elementary School
20080 Sw Farmington Rd
Aloha, OR 97007

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Hazeldale Elementary School",'Aloha=' + Aloha.length); Beaverton[Beaverton.length] = createMarker(new GPoint(-122.81970215,45.46916199),"
Highland Park Middle School
7000 Sw Wilson Ave
Beaverton, OR 97008

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Highland Park Middle School",'Beaverton=' + Beaverton.length); Hillsboro[Hillsboro.length] = createMarker(new GPoint(-122.95342255,45.49518585),"
Hillsboro High School
3285 Se Rood Bridge Rd
Hillsboro, OR 97123

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Hillsboro High School",'Hillsboro=' + Hillsboro.length); Beaverton[Beaverton.length] = createMarker(new GPoint(-122.81890106,45.45466232),"
Hiteon Elementary School
13800 Sw Brockman Rd
Beaverton, OR 97008

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Hiteon Elementary School",'Beaverton=' + Beaverton.length); Hillsboro[Hillsboro.length] = createMarker(new GPoint(-122.92240143,45.51216125),"
Imlay Elementary School
5900 Se Lois St
Hillsboro, OR 97123

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Imlay Elementary School",'Hillsboro=' + Hillsboro.length); Aloha[Aloha.length] = createMarker(new GPoint(-122.89600372,45.50746155),"
Indian Hills Elementary School
21260 Sw Rock Rd
Aloha, OR 97006

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Indian Hills Elementary School",'Aloha=' + Aloha.length); Hillsboro[Hillsboro.length] = createMarker(new GPoint(-122.97986603,45.52393723),"
J B Thomas Middle School
645 Ne Lincoln St
Hillsboro, OR 97124

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("J B Thomas Middle School",'Hillsboro=' + Hillsboro.length); Sherwood[Sherwood.length] = createMarker(new GPoint(-122.84409332,45.36152267),"
J Clyde Hopkins Elementary School
21920 Sw Sherwood Blvd
Sherwood, OR 97140

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("J Clyde Hopkins Elementary School",'Sherwood=' + Sherwood.length); Hillsboro[Hillsboro.length] = createMarker(new GPoint(-122.96621704,45.52773666),"
J W Poynter Middle School
1535 Ne Grant St
Hillsboro, OR 97124

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("J W Poynter Middle School",'Hillsboro=' + Hillsboro.length); Hillsboro[Hillsboro.length] = createMarker(new GPoint(-122.98132324,45.54304123),"
Jackson Elementary School
675 Ne Estate Dr
Hillsboro, OR 97124

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Jackson Elementary School",'Hillsboro=' + Hillsboro.length); Tigard[Tigard.length] = createMarker(new GPoint(-122.77479553,45.41266251),"
James Templeton Elementary School
9500 Sw Murdock St
Tigard, OR 97224

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("James Templeton Elementary School",'Tigard=' + Tigard.length); Forest_Grove[Forest_Grove.length] = createMarker(new GPoint(-123.09261322,45.51686478),"
Joseph Gale Elementary School
3130 18th Ave
Forest Grove, OR 97116

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Joseph Gale Elementary School",'Forest_Grove=' + Forest_Grove.length); Beaverton[Beaverton.length] = createMarker(new GPoint(-122.87579346,45.48973083),"
Kinnaman Elementary School
4205 Sw 193rd Ave
Beaverton, OR 97007

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Kinnaman Elementary School",'Beaverton=' + Beaverton.length); Hillsboro[Hillsboro.length] = createMarker(new GPoint(-122.90209961,45.50180054),"
Ladd Acres Elementary School
2425 Sw Cornelius Rd
Hillsboro, OR 97123

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Ladd Acres Elementary School",'Hillsboro=' + Hillsboro.length); Hillsboro[Hillsboro.length] = createMarker(new GPoint(-122.64720154,45.51419830),"
Liberty High School
21945 Nw Wagon Way
Hillsboro, OR 97124

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Liberty High School",'Hillsboro=' + Hillsboro.length); Tigard[Tigard.length] = createMarker(new GPoint(-122.80178070,45.43303680),"
Mary Woodward Elementary School
12325 Sw Katherine St
Tigard, OR 97223

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Mary Woodward Elementary School",'Tigard=' + Tigard.length); Beaverton[Beaverton.length] = createMarker(new GPoint(-122.77756500,45.46643448),"
Mckay Elementary School
7485 Sw Scholls Ferry Rd
Beaverton, OR 97008

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Mckay Elementary School",'Beaverton=' + Beaverton.length); Beaverton[Beaverton.length] = createMarker(new GPoint(-122.86730194,45.53077316),"
Mckinley Elementary School
1500 Nw 185th Ave
Beaverton, OR 97006

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Mckinley Elementary School",'Beaverton=' + Beaverton.length); Beaverton[Beaverton.length] = createMarker(new GPoint(-122.82215881,45.51574326),"
Meadow Park Middle School
14100 Sw Downing St
Beaverton, OR 97006

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Meadow Park Middle School",'Beaverton=' + Beaverton.length); Beaverton[Beaverton.length] = createMarker(new GPoint(-122.84783173,45.50660706),"
Merlo Night School
1841 Sw Merlo Rd
Beaverton, OR 97006

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Merlo Night School",'Beaverton=' + Beaverton.length); Tigard[Tigard.length] = createMarker(new GPoint(-122.76983643,45.44590759),"
Metzger Elementary School
10350 Sw Lincoln St
Tigard, OR 97223

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Metzger Elementary School",'Tigard=' + Tigard.length); Sherwood[Sherwood.length] = createMarker(new GPoint(-122.86799622,45.34943390),"
Middleton Elementary School
23505 Sw Old Hwy 99w
Sherwood, OR 97140

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Middleton Elementary School",'Sherwood=' + Sherwood.length); Hillsboro[Hillsboro.length] = createMarker(new GPoint(-122.98141300,45.52095600),"
Miller Education Center
215 Se 6th Ave
Hillsboro, OR 97123

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Miller Education Center",'Hillsboro=' + Hillsboro.length); Hillsboro[Hillsboro.length] = createMarker(new GPoint(-122.98592900,45.51660000),"
Miller Education Middle School
560 Se 3rd Ave
Hillsboro, OR 97123

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Miller Education Middle School",'Hillsboro=' + Hillsboro.length); Hillsboro[Hillsboro.length] = createMarker(new GPoint(-122.96494293,45.49728012),"
Minter Bridge Elementary School
1750 Se Jacquelin Dr
Hillsboro, OR 97123

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Minter Bridge Elementary School",'Hillsboro=' + Hillsboro.length); Hillsboro[Hillsboro.length] = createMarker(new GPoint(-122.97274780,45.53376770),"
Mooberry Elementary School
1230 Ne 10th Ave
Hillsboro, OR 97124

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Mooberry Elementary School",'Hillsboro=' + Hillsboro.length); Beaverton[Beaverton.length] = createMarker(new GPoint(-122.85697937,45.47985458),"
Mountain View Middle School
17500 Sw Farmington Rd
Beaverton, OR 97007

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Mountain View Middle School",'Beaverton=' + Beaverton.length); Tigard[Tigard.length] = createMarker(new GPoint(-122.79138184,45.41883850),"
Multi-sensory Instruction Teaching Children Hands- Elementary School
Po Box 230575
Tigard, OR 97281

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Multi-sensory Instruction Teaching Children Hands- Elementary School",'Tigard=' + Tigard.length); Beaverton[Beaverton.length] = createMarker(new GPoint(-122.84346008,45.44576263),"
Nancy Ryles Elementary School
10250 Sw Cormorant Dr
Beaverton, OR 97007

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Nancy Ryles Elementary School",'Beaverton=' + Beaverton.length); Forest_Grove[Forest_Grove.length] = createMarker(new GPoint(-123.11032104,45.51836777),"
Neil Armstrong Middle School
1777 Mt View Ln
Forest Grove, OR 97116

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Neil Armstrong Middle School",'Forest_Grove=' + Forest_Grove.length); North_Plains[North_Plains.length] = createMarker(new GPoint(-123.00749969,45.63259888),"
North Plains Elementary School
Po Box 190
North Plains, OR 97133

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("North Plains Elementary School",'North_Plains=' + North_Plains.length); Beaverton[Beaverton.length] = createMarker(new GPoint(-122.83515930,45.53833008),"
Oak Hills Elementary School
2625 Nw 153rd Ave
Beaverton, OR 97006

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Oak Hills Elementary School",'Beaverton=' + Beaverton.length); Hillsboro[Hillsboro.length] = createMarker(new GPoint(-122.90750122,45.52866364),"
Orenco Elementary School
22550 Nw Birch St
Hillsboro, OR 97124

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Orenco Elementary School",'Hillsboro=' + Hillsboro.length); Hillsboro[Hillsboro.length] = createMarker(new GPoint(-122.99127197,45.54582977),"
Paul L Patterson Elementary School
261 Ne Lenox St
Hillsboro, OR 97124

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Paul L Patterson Elementary School",'Hillsboro=' + Hillsboro.length); Hillsboro[Hillsboro.length] = createMarker(new GPoint(-122.98590088,45.52677155),"
Peter Boscow Elementary School
452 Ne 3rd Ave
Hillsboro, OR 97124

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Peter Boscow Elementary School",'Hillsboro=' + Hillsboro.length); Hillsboro[Hillsboro.length] = createMarker(new GPoint(-122.90219879,45.50926208),"
R A Brown Middle School
1505 Sw Cornelius Pass Rd
Hillsboro, OR 97123

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("R A Brown Middle School",'Hillsboro=' + Hillsboro.length); Aloha[Aloha.length] = createMarker(new GPoint(-122.89173126,45.50070572),"
Reedville Elementary School
2695 Sw 209th Ave
Aloha, OR 97006

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Reedville Elementary School",'Aloha=' + Aloha.length); Beaverton[Beaverton.length] = createMarker(new GPoint(-122.84584045,45.43111038),"
Scholls Heights Elementary School
16400 Sw Loon Dr
Beaverton, OR 97007

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Scholls Heights Elementary School",'Beaverton=' + Beaverton.length); Beaverton[Beaverton.length] = createMarker(new GPoint(-122.84783173,45.50660706),"
School Of Science & Technology
1841 Sw Merlo Dr
Beaverton, OR 97006

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("School Of Science & Technology",'Beaverton=' + Beaverton.length); Beaverton[Beaverton.length] = createMarker(new GPoint(-122.83695221,45.45853806),"
Sexton Mountain Elementary School
15645 Sw Sexton Mtn Dr
Beaverton, OR 97007

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Sexton Mountain Elementary School",'Beaverton=' + Beaverton.length); Sherwood[Sherwood.length] = createMarker(new GPoint(-122.85105133,45.35856247),"
Sherwood High School
16956 Sw Meinecke Rd
Sherwood, OR 97140

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Sherwood High School",'Sherwood=' + Sherwood.length); Sherwood[Sherwood.length] = createMarker(new GPoint(-122.84239197,45.35896683),"
Sherwood Middle School
21970 Sw Sherwood Blvd
Sherwood, OR 97140

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Sherwood Middle School",'Sherwood=' + Sherwood.length); Beaverton[Beaverton.length] = createMarker(new GPoint(-122.80559540,45.45057297),"
Southridge High School
9625 Sw 125th Ave
Beaverton, OR 97008

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Southridge High School",'Beaverton=' + Beaverton.length); Cornelius[Cornelius.length] = createMarker(new GPoint(-123.05190277,45.51169968),"
Straight Ahead Shelter
Po Box 699
Cornelius, OR 97113

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Straight Ahead Shelter",'Cornelius=' + Cornelius.length); Tigard[Tigard.length] = createMarker(new GPoint(-122.78843689,45.43081665),"
Thomas R Fowler Middle School
10865 Sw Walnut St
Tigard, OR 97223

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Thomas R Fowler Middle School",'Tigard=' + Tigard.length); Tigard[Tigard.length] = createMarker(new GPoint(-122.76994324,45.40416336),"
Tigard High School
9000 Sw Durham Rd
Tigard, OR 97224

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Tigard High School",'Tigard=' + Tigard.length); Aloha[Aloha.length] = createMarker(new GPoint(-122.88912964,45.51202393),"
Tobias Elementary School
1065 Sw 206th
Aloha, OR 97006

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Tobias Elementary School",'Aloha=' + Aloha.length); Forest_Grove[Forest_Grove.length] = createMarker(new GPoint(-123.12491608,45.52023697),"
Tom Mccall Upper Elementary School
1341 Pacific Ave
Forest Grove, OR 97116

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Tom Mccall Upper Elementary School",'Forest_Grove=' + Forest_Grove.length); Tualatin[Tualatin.length] = createMarker(new GPoint(-122.76729584,45.37583923),"
Tualatin Elementary School
20405 Sw 95th Ave
Tualatin, OR 97062

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Tualatin Elementary School",'Tualatin=' + Tualatin.length); Tualatin[Tualatin.length] = createMarker(new GPoint(-122.77453613,45.35841370),"
Tualatin High School
22300 Sw Boones Ferry Rd
Tualatin, OR 97062

[ View School Profile ]
",iconGr); mySelect.options[mySelect.options.length] = new Option("Tualatin High School",'Tualatin=' + Tualatin.length); Tigard[Tigard.length] = createMarker(new GPoint(-122.77600098,45.41379547),"
Twality Middle School
14650 Sw 97th Ave
Tigard, OR 97224

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Twality Middle School",'Tigard=' + Tigard.length); Beaverton[Beaverton.length] = createMarker(new GPoint(-122.79315948,45.46916199),"
Vose Elementary School
11350 Sw Denney Rd
Beaverton, OR 97008

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Vose Elementary School",'Beaverton=' + Beaverton.length); Hillsboro[Hillsboro.length] = createMarker(new GPoint(-122.95800018,45.51178360),"
W L Henry Elementary School
1060 Se 24th Ave
Hillsboro, OR 97123

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("W L Henry Elementary School",'Hillsboro=' + Hillsboro.length); Hillsboro[Hillsboro.length] = createMarker(new GPoint(-122.99507141,45.52999878),"
W Verne Mckinney Elementary School
535 Nw Darnielle St
Hillsboro, OR 97124

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("W Verne Mckinney Elementary School",'Hillsboro=' + Hillsboro.length); Hillsboro[Hillsboro.length] = createMarker(new GPoint(-122.92319489,45.57738113),"
West Union Elementary School
23870 Nw West Union Rd
Hillsboro, OR 97124

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("West Union Elementary School",'Hillsboro=' + Hillsboro.length); Beaverton[Beaverton.length] = createMarker(new GPoint(-122.77946472,45.46286011),"
Whitford Middle School
7935 Sw Scholls Ferry Rd
Beaverton, OR 97008

[ View School Profile ]
",iconBl); mySelect.options[mySelect.options.length] = new Option("Whitford Middle School",'Beaverton=' + Beaverton.length); Hillsboro[Hillsboro.length] = createMarker(new GPoint(-122.93106842,45.49973679),"
Witch Hazel Elementary School
4950 Sw Davis Rd
Hillsboro, OR 97123

[ View School Profile ]
",iconRd); mySelect.options[mySelect.options.length] = new Option("Witch Hazel Elementary School",'Hillsboro=' + Hillsboro.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,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(Aloha); map.removeOverlays(Banks); map.removeOverlays(Beaverton); map.removeOverlays(Cornelius); map.removeOverlays(Forest_Grove); map.removeOverlays(Gales_Creek); map.removeOverlays(Gaston); map.removeOverlays(Hillsboro); map.removeOverlays(North_Plains); map.removeOverlays(Sherwood); map.removeOverlays(Tigard); map.removeOverlays(Tualatin); 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(Beaverton);map.removeOverlays(Aloha); map.removeOverlays(Banks); map.removeOverlays(Beaverton); map.removeOverlays(Cornelius); map.removeOverlays(Forest_Grove); map.removeOverlays(Gales_Creek); map.removeOverlays(Gaston); map.removeOverlays(Hillsboro); map.removeOverlays(North_Plains); map.removeOverlays(Sherwood); map.removeOverlays(Tigard); map.removeOverlays(Tualatin); map.addOverlays(Aloha); centerByArray(Aloha, false, false); cntMarker += Aloha.length; map.addOverlays(Banks); centerByArray(Banks, false, false); cntMarker += Banks.length; map.addOverlays(Beaverton); centerByArray(Beaverton, false, false); cntMarker += Beaverton.length; map.addOverlays(Cornelius); centerByArray(Cornelius, false, false); cntMarker += Cornelius.length; map.addOverlays(Forest_Grove); centerByArray(Forest_Grove, false, false); cntMarker += Forest_Grove.length; map.addOverlays(Gales_Creek); centerByArray(Gales_Creek, false, false); cntMarker += Gales_Creek.length; map.addOverlays(Gaston); centerByArray(Gaston, false, false); cntMarker += Gaston.length; map.addOverlays(Hillsboro); centerByArray(Hillsboro, false, false); cntMarker += Hillsboro.length; map.addOverlays(North_Plains); centerByArray(North_Plains, false, false); cntMarker += North_Plains.length; map.addOverlays(Sherwood); centerByArray(Sherwood, false, false); cntMarker += Sherwood.length; map.addOverlays(Tigard); centerByArray(Tigard, false, false); cntMarker += Tigard.length; map.addOverlays(Tualatin); centerByArray(Tualatin, false, false); cntMarker += Tualatin.length; centerByArray(Beaverton,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'); } }