// filename: map.js.cfm
// project: aia
// author: zliniguez
// created: 2/16/2007
// notes: javascript parameters for google map
var map = null;
var baseIcon = null;
function loadMap(address, zoom) {
if (GBrowserIsCompatible()) {
// hide text of open houses
//document.getElementById('openHouses').style.display="none";
// display gmaps
document.getElementById('map').style.display="";
map = new GMap2(document.getElementById("googleMap"));
map.addControl(new GLargeMapControl());
map.addControl(new GMapTypeControl());
map.addControl(new GOverviewMapControl());
getPoint(address, zoom, 0);
// create base icon
baseIcon = new GIcon();
//baseIcon.shadow = "http://www.google.com/mapfiles/shadow50.png";
baseIcon.iconSize = new GSize(22, 29);
baseIcon.shadowSize = new GSize(32, 29);
baseIcon.iconAnchor = new GPoint(9, 34);
baseIcon.infoWindowAnchor = new GPoint(22, 2);
baseIcon.infoShadowAnchor = new GPoint(18, 25);
var request = GXmlHttp.create();
request.open('GET', 'googleMapData.xml', true);
request.onreadystatechange = function() {
if (request.readyState == 4) {
setPoint('David Heide Design Studio', '301 Fourth Avenue South, Suite 663', 'www.dhdstudio.com', '612-337-5060', '4/12/2007', '4:00 - 8:00pm', '12');
setPoint('Barbour LaDouceur Design Group', '129 North Second St. #103', 'Minneapolis, MN 55401', 'www.barbourladouceur.com', '612-339-5093', '4/12/2007', '4:00 - 8:00pm', '');
setPoint('B. Aaron Parker & Associates/ Metropeligo P.C.', '430 Oak Grove Suite 205', 'Minneapolis, MN 55403', 'www.metropeligo.com', '612-824-2915', '4/12/2007', '4:00 - 8:00pm', '');
setPoint('CF Design, Ltd.', '230 E. Superior Street', 'Duluth, MN 55802', 'www.cfdesignltd.com', '218-722-1060', '4/12/2007', '4:00 - 8:00pm', '5');
setPoint('Target Architecture at TCI
Young-Quinlan Building', '81 South 9th Street, Suite 350', 'Minneapolis, MN 55402', 'www.targetcommercialinteriors.com', '612-343-0868', '4/12/2007', '4:00 - 8:00pm', '');
setPoint('The art of place', '4633 France Avenue South', 'Minneapolis, MN 55410', 'www.theartofplace.com', '612-929-2393', '4/12/2007', '4:00 - 8:00pm', '');
setPoint('LHB, Inc.', '250 Third Avenue North, Suite 450', 'Minneapolis, MN 55401', 'www.lhbcorp.com', '612-338-2029', '4/12/2007', '4:00 - 8:00pm', '');
setPoint('SJA Architects', '2035 15th Street North', 'St. Cloud, MN 56303', 'www.staniusjohnson.com', '320-253-2100', '4/12/2007', '4:00 - 8:00pm', '');
}
}
request.send(null);
}
}
// create a marker with an info window
function createMarker(point, locName, locAddress, locCityStateZip, locURL, locPhone, locDate, locTime, locFirmSize) {
var icon = new GIcon(baseIcon);
icon.image = "icon.png";
var marker = new GMarker(point, icon);
// show this marker's index in the info window when it is clicked.
var html =
"