function GEOHeatmap()
{
this._width = 0;
this._height = 0;
this._lat1 = 0;
this._lat2 = 0;
this._lon1 = 0;
this._lon2 = 0;
this._url = '';
this._distBoost = 1;
this._decay = 0;
this._baseURL = 'http://www.heatmapapi.com/HeatmapGenerate.aspx?k=e355c171-5026-490c-9a39-d3292213098c&u=1661';
this._data = "";
this.Init = _GEOHMInit;
this.SetData = _GEOHMSetData;
this.GetURL = _GEOHMGetURL;
this.UseURL = _GEOHMUseURL;
this.SetBoost = _GEOHMSetBoost;
this.SetProxyURL = _GEOHMSetProxyURL;
this.SetDecay = _GEOHMSetDecay;
}
function _GEOHMInit(width, height)
{
this._width = width;
this._height = height;
}
function _GEOHMSetData(data)
{
this._data = data.slice(0);
}
function _GEOHMUseURL(url)
{
this._baseURL = url;
}
function _GEOHMSetBoost(boost)
{
this._distBoost = boost;
}
function _GEOHMSetDecay(decay)
{
this._decay = decay;
}
function _GEOHMSetProxyURL(url)
{
alert('You should be using HeatmapAPI2.aspx not HeatmapAPI.aspx, or remove your call to SetProxyURL().');
}
function _GEOHMGetURL()
{
this._url = this._baseURL + '&d=' + this._data.toString() + "&x=" + this._decay.toString() + "&b=" + this._distBoost.toString() + "&w=" + this._width.toString() + "&h=" + this._height.toString();
var url = this._url.toLocaleString();
return url;
}
