function load() {
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map"));
map.addControl(new GSmallMapControl());
map.addControl(new GMapTypeControl());
map.setCenter(new GLatLng(39.03,-95.80), 10);// ((Vert,Horiz),Zoom Level)
// Create a base icon for all of our markers that specifies the
// shadow, icon dimensions, etc.
var baseIcon = new GIcon();
baseIcon.shadow = "http://www.google.com/mapfiles/shadow50.png";
baseIcon.iconSize = new GSize(20, 34);
baseIcon.shadowSize = new GSize(37, 34);
baseIcon.iconAnchor = new GPoint(9, 34);
baseIcon.infoWindowAnchor = new GPoint(9, 2);
baseIcon.infoShadowAnchor = new GPoint(18, 25);
// Creates a marker whose info window displays the letter corresponding to the given index.
var aHours = "";
function createMarker(point, index, name, addy1, addy2, hours, type, color) {
var icon = new GIcon(baseIcon);
icon.image = "/image/style/marker-"+color+".png";
var marker = new GMarker(point, icon);
if(hours!=""){
aHours = 'Hours: '+hours+'
';
}
GEvent.addListener(marker, "click", function() {
marker.openInfoWindowHtml(''+name+'
'+addy1+'
'+addy2+'
'+aHours+'Materials Accepted: '+type+'
');
});
return marker;
}
/*
// Add 10 markers to the map at random locations
var bounds = map.getBounds();
var southWest = bounds.getSouthWest();
var northEast = bounds.getNorthEast();
var lngSpan = northEast.lng() - southWest.lng();
var latSpan = northEast.lat() - southWest.lat();
*/
// RecLoc#Lat/RecLoc#Lng = Recycling Location (Position Number) Latitude/Longitude
var x = 0;
var NameLoc = new Array;
var LocLatRec = new Array;
var LocLngRec = new Array;
var AddyPhys1 = new Array;
var AddyPhys2 = new Array;
var Hours = new Array;
var TypeLoc = new Array;
var TypeRec = new Array("Plastics, Office Paper, Newspaper, Metals, Glass, Cardboard, Magazines","Plastics, Newspaper, Metals, Glass, Cardboard, Magazines","Plastics, Newspapers, Metals, Cardboard, and Magazines","Plastics, Newspapers, Metals, and Cardboard","Plastics, Newspapers, Metals and Magazines","Plastics, Metals, Glass and Cardboard","Plastics, Newspapers, and Metals","","","","","","","","","","","","","","","","","","","","","","");
var TypeColor = new Array("green","green","yellow","orange","orange","orange","red","","","","","","","","","","","","","","","","","","","","","","");
var RecType = 0; // All Recyclables
NameLoc[x] = "Wal-Mart Super Center";
AddyPhys1[x] = "1501 SW Wanamaker Road";
AddyPhys2[x] = "Topeka, KS 66604";
LocLatRec[x] = 39.03827;
LocLngRec[x] = -95.7645;
Hours[x] = "";
TypeLoc[x++] = 0;
NameLoc[x] = "First Christian Church";
AddyPhys1[x] = "1880 SW Gage Blvd";
AddyPhys2[x] = "Topeka, KS 66604";
LocLatRec[x] = 39.0346;
LocLngRec[x] = -95.72283;
Hours[x] = "";
TypeLoc[x++] = 0;
NameLoc[x] = "Dillon’s";
AddyPhys1[x] = "801 NW 25th St";
AddyPhys2[x] = "Topeka, KS 66618";
LocLatRec[x] = 39.0927;
LocLngRec[x] = -95.6753;
Hours[x] = "";
TypeLoc[x++] = 0;
NameLoc[x] = "Topeka Correctional Facility";
AddyPhys1[x] = "815 SE Rice Rd";
AddyPhys2[x] = "Topeka, KS 66607";
LocLatRec[x] = 39.041018;
LocLngRec[x] = -95.622962;
Hours[x] = "";
TypeLoc[x++] = 0;
NameLoc[x] = "Dultmeier Homes";
AddyPhys1[x] = "4900 SW Vorse Rd";
AddyPhys2[x] = "Topeka, KS 66610";
LocLatRec[x] = 38.97477;
LocLngRec[x] = -95.769145;
Hours[x] = "";
TypeLoc[x++] = 0;
NameLoc[x] = "St. Francis Hospital";
AddyPhys1[x] = "634 SW Mulvane";
AddyPhys2[x] = "Topeka, KS 66606";
LocLatRec[x] = 39.067314;
LocLngRec[x] = -95.692806;
Hours[x] = "";
TypeLoc[x++] = 0;
NameLoc[x] = "Joyland Flea Market and Recycling Center";
AddyPhys1[x] = "2901 SE Adams St";
AddyPhys2[x] = "Topeka, KS 66605";
LocLatRec[x] = 39.01463;
LocLngRec[x] = -95.67077;
Hours[x] = "";
TypeLoc[x++] = 0;
NameLoc[x] = "Iwig Dairy";
AddyPhys1[x] = "3320 SE Tecumseh Rd";
AddyPhys2[x] = "Tecumseh, KS 66542";
LocLatRec[x] = 39.003398;
LocLngRec[x] = -95.584016;
Hours[x] = "";
TypeLoc[x++] = 0;
NameLoc[x] = "Topeka Quarter Midget Association";
AddyPhys1[x] = "1121 SW University Blvd";
AddyPhys2[x] = "Topeka, KS 66619";
LocLatRec[x] = 38.950273;
LocLngRec[x] = -95.696089;
Hours[x] = "";
TypeLoc[x++] = 0;
NameLoc[x] = "Wehner’s Thriftway";
AddyPhys1[x] = "551 E US Hwy 24 Traffic Way";
AddyPhys2[x] = "Rossville, KS 66533";
LocLatRec[x] = 39.138058;
LocLngRec[x] = -95.955849;
Hours[x] = "";
TypeLoc[x++] = 0;
NameLoc[x] = "Oakland Billard Ball Diamond Parking";
AddyPhys1[x] = "Oakland-Billard Park";
AddyPhys2[x] = "Topeka, KS 66616";
LocLatRec[x] = 39.068742;
LocLngRec[x] = -95.645492;
Hours[x] = "";
TypeLoc[x++] = 0;
NameLoc[x] = "Household Hazardous Waste Facility";
AddyPhys1[x] = "131 NE 46th St";
AddyPhys2[x] = "Topeka, KS 66617";
LocLatRec[x] = 39.129328;
LocLngRec[x] = -95.6589;
Hours[x] = "";
TypeLoc[x++] = 1;
NameLoc[x] = "Brookwood Covenant Church";
AddyPhys1[x] = "3601 SW 33rd St";
AddyPhys2[x] = "Topeka, KS 66614";
LocLatRec[x] = 39.0079;
LocLngRec[x] = -95.7224;
Hours[x] = "";
TypeLoc[x++] = 1;
NameLoc[x] = "Topeka Parks and Recreation";
AddyPhys1[x] = "SW 10th Ave and SW Civitan Ln";
AddyPhys2[x] = "Topeka, KS 66604";
LocLatRec[x] = 39.05265;
LocLngRec[x] = -95.7301;
Hours[x] = "";
TypeLoc[x++] = 1;
NameLoc[x] = "Learning for Life Center";
AddyPhys1[x] = "2701 SW 17th St";
AddyPhys2[x] = "Topeka, KS 66604";
LocLatRec[x] = 39.036786;
LocLngRec[x] = -95.710917;
Hours[x] = "";
TypeLoc[x++] = 1;
NameLoc[x] = "Dover Fire Station";
AddyPhys1[x] = "Valencia Rd and Frontage Rd (W)";
AddyPhys2[x] = "Topeka, KS 66615";
LocLatRec[x] = 39.05985;
LocLngRec[x] = -95.8722;
Hours[x] = "";
TypeLoc[x++] = 1;
NameLoc[x] = "First Lutheran Church";
AddyPhys1[x] = "1234 SW Fairlawn Rd";
AddyPhys2[x] = "Topeka, KS 66604";
LocLatRec[x] = 39.046255;
LocLngRec[x] = -95.742425;
Hours[x] = "";
TypeLoc[x++] = 2;
NameLoc[x] = "Washburn Rural High School";
AddyPhys1[x] = "5900 SW 61st St";
AddyPhys2[x] = "Topeka, KS 66619";
LocLatRec[x] = 38.957885;
LocLngRec[x] = -95.759935;
Hours[x] = "";
TypeLoc[x++] = 3;
NameLoc[x] = "Albert Neese Masonic Lodge";
AddyPhys1[x] = "5947 SE 45th St";
AddyPhys2[x] = "Tecumseh, KS 66542-9538";
LocLatRec[x] = 38.98599;
LocLngRec[x] = -95.55758;
Hours[x] = "";
TypeLoc[x++] = 3;
NameLoc[x] = "First Baptist Church";
AddyPhys1[x] = "3003 SW MacVicar";
AddyPhys2[x] = "Topeka, KS 66611";
LocLatRec[x] = 39.0338;
LocLngRec[x] = -95.70619;
Hours[x] = "";
TypeLoc[x++] = 4;
NameLoc[x] = "Kansas Neurology Institute";
AddyPhys1[x] = "3107 SW 21st St.";
AddyPhys2[x] = "Topeka, KS 66604";
LocLatRec[x] = 39.012819;
LocLngRec[x] = -95.70635;
Hours[x] = "";
TypeLoc[x++] = 5;
NameLoc[x] = "Auburn Apple Market";
AddyPhys1[x] = "1431 N Washington St";
AddyPhys2[x] = "Auburn, KS 66402";
LocLatRec[x] = 38.900218;
LocLngRec[x] = -95.816209;
Hours[x] = "";
TypeLoc[x++] = 6;
var point = '';
var i = 0;
for (i = 0; i < LocLatRec.length; i++) {
point = new GLatLng(LocLatRec[i], LocLngRec[i]);
map.addOverlay(createMarker(point, i, NameLoc[i], AddyPhys1[i], AddyPhys2[i],Hours[i], TypeRec[TypeLoc[i]], TypeColor[TypeLoc[i]]));
}
}
}
addonloadfunction(load);