
// GoogleMapに関するJavascript
//  プロトタイプにメソッドを追加する。
//  コンストラクタを Prototype に実装する。

function GoogleMapManager() {
    this.initialize.apply(this, arguments);
}
GoogleMapManager.prototype.initialize = function(targetElement, lttd, lgtd, zoom) {
    this.element = targetElement;
    this.lttd    = lttd;
    this.lgtd    = lgtd;
    this.zoom    = zoom;

	if(! this.lttd) 
		this.lttd = 33.595175;

	if(! this.lgtd) 
		this.lgtd = 130.404968;

	if(! this.zoom) 
		this.zoom = 13;

};

GoogleMapManager.prototype.show = function() {
	this.map = new GMap2(document.getElementById(this.element));
	this.map.addControl(new GSmallMapControl());
	this.map.setCenter(new GLatLng(this.lttd,this.lgtd), this.zoom, G_NORMAL_MAP);
};

