var tx_mwecmaps = {
	ecMap: null,

	initDone: false,
	mapId: '',
	pinData: null,

	GetECMap: function () {
		this.ecMap = new eContent.Map(this.mapId);

		var center = new VELatLong(this.pinData.lat, this.pinData.lng);
		this.ecMap.LoadMap(center, 12, eContent.MapStyle.Road);
		this.ecMap.SetPopupOnHover(false);

		// this.ecMap.AddLoadCompleteHandler(function () { alert('Karte geladen'); });

		var pinGastgeber = this.ecMap.CreatePinShape(center, this.pinData.pinType);
		pinGastgeber.SetTitle(this.pinData.title);
		pinGastgeber.SetDescription(this.pinData.description);

		var layer = new VEShapeLayer();
		layer.AddShape(pinGastgeber);

		this.ecMap.AddShapeLayer(layer);
		// ecMap.ShowInfoBox(pinGastgeber);

		// ecMap..Update();
	}
}

