/*
 * Fluster2 0.1.1
 * Copyright (C) 2009 Fusonic GmbH
 *
 * This file is part of Fluster2.
 *
 * Fluster2 is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * Fluster2 is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library. If not, see <http://www.gnu.org/licenses/>.
 */

/**
 * An empty overlay which is used to retrieve the map projection panes.
 *
 * @constructor
 * @private
 * @param {google.maps.Map} the Google Maps v3
 */
function Fluster3ProjectionOverlay(map,flusterObject)
{
	this.div = null;
	this.flusterObject = flusterObject;
	google.maps.OverlayView.call(this);
	this.setMap(map);
	
	//this.draw();
	
	this.getP = function()
	{
		if (this.getProjection() == undefined) {
			this.setMap(map);
		}
		
		return this.getProjection();
	};
	
	
	
}

Fluster3ProjectionOverlay.prototype = new google.maps.OverlayView();

Fluster3ProjectionOverlay.prototype.draw = function()
{
	
	this.flusterObject.createClusters();
};

Fluster3ProjectionOverlay.prototype.onAdd = function() {
	
}

