';
for (var i=0; i < this.events.length; i++) {
display += '
';
display += this.events[i].name;
display += '
';
}
display += '
';
if (this.title != "" && this.title != null && this.title != undefined) {
display += '' + this.title + '
';
}
/*if (this.description != "" && this.description != null && this.description != "undefined") {
display += this.description + '
';
}*/
if (this.show_address) {
display += '
';
display += this.street + '
';
display += this.city + ', ';
display += this.state + ' ';
display += this.zip;
display += '
';
if (this.phone != "" && this.phone != null && this.phone != "undefined") {
display += this.phone + '
';
}
}
display += '
';
if (this.show_directions) {
//display += '
';
display += '
';
}
display += '
';
this.marker.openInfoWindowHtml(display, {maxWidth: sxsw_map_settings["Popup Width"]});
this.map.getInfoWindow().current_marker = this.marker;
this.map.getInfoWindow().current_address = this.address;
}
else {
this.map.closeInfoWindow();
//delete map.getInfoWindow().current_marker;
//delete map.getInfoWindow().current_address;
}
}
SXSWMapPoint.prototype.setupInfoWindowClose = function() {
delete this.map.getInfoWindow().current_marker;
delete this.map.getInfoWindow().current_address;
}
SXSWMapPoint.prototype.setupIcon = function(png) {
if (png == "default") {
return new GIcon(G_DEFAULT_ICON);
} else {
return new GIcon(G_DEFAULT_ICON, png);
}
}
// write script
function includeScript(script_filename) {
document.write('<' + 'script');
document.write(' id="google_map_script"');
document.write(' language="javascript"');
document.write(' type="text/javascript"');
document.write(' src="' + script_filename + '">');
document.write('' + 'script' + '>');
//window.onload = loadSXSWMap;
}
// UNUSED
function panTo(address) {
geocoder.getLocations(address, panToAddress);
}
function panToAddress(response) {
if (!response || response.Status.code != 200) {
alert(address + " not found");
} else {
var place = response.Placemark[0];
var point = new GLatLng(place.Point.coordinates[1], place.Point.coordinates[0]);
map.panTo(point);
GEvent.trigger(sxsw_map_points[response.name].marker, "click");
}
}
SXSWMap.prototype.createAd = function() {
var mapdiv = this.map_div;
var ad_div = document.createElement("div");//document.getElementById("ad");
ad_div.style.width = "75px";
ad_div.style.height = "50px";
ad_div.style.border = "1px solid black";
ad_div.style.backgroundColor = "red";
ad_div.style.position = "absolute";
ad_div.style.top = parseInt(mapdiv.style.height) - parseInt(ad_div.style.height) + "px";
ad_div.style.left = parseInt(mapdiv.style.width) - parseInt(ad_div.style.width) + "px";
this.map.getContainer().appendChild(ad_div);
}
//]]>