/****************************************************************************************************
グローバル変数
****************************************************************************************************/
var MARKER_NOTHING = 'L1';	//マーカーが存在しない時に表示

document.write('<script type="text/javascript" src="' + document.location.protocol + '//api.pmx.proatlas.net/js/webdrive.js?appid=c8718732&bow=true"></script>');
document.write('<script type="text/javascript" src="' + document.location.protocol + '//api.pmx.proatlas.net/wrapperjs/asp_callback.js"></script>');
document.write('<script type="text/javascript" src="' + document.location.protocol + '//api.pmx.proatlas.net/wrapperjs/json.js"></script>');
document.write('<script type="text/javascript" src="' + document.location.protocol + '//api.pmx.proatlas.net/wrapperjs/sokodoko.js"></script>');
document.write('<script type="text/javascript" src="' + document.location.protocol + '//api.pmx.proatlas.net/wrapperjs/geocoder.js"></script>');

/****************************************************************************************************
  関数名：fncOnloadMap
  引  数：strMapId		マップID（htmlのid）
        ：objMapData	マップデータ
  戻り値：なし
  備  考：
****************************************************************************************************/
function fncOnloadMap(strMapId, objMapData) {

	var gobjMap = null;
	var intLoopCount = 0;
	var strCategoryName = '';
	var objWidth = null;
	var objIcons = new Array();

	gobjMap = new YahooMapsCtrl(strMapId, objMapData.Map.LatLng, 2);
	var intZoomLevel = 2;
	gobjMap.setLayer(intZoomLevel);
	gobjMap.setVisibleSliderbar(true);
	gobjMap.setVisibleCentermark(false);
	gobjMap.setEnableWheelOperation(false);

	if (objMapData.Map.Marker != '') {
		strCategoryName = 'cat' + intLoopCount;
		objWidth = {'width': objMapData.Map.MarkerWidth, 'height': objMapData.Map.MarkerHeight};
		gobjMap.addCategory(strCategoryName, objMapData.Map.Marker, objWidth);
	} else {
		strCategoryName = MARKER_NOTHING;
	}
	objIcons[0] = {'id': 'icon' + intLoopCount, 'pos': objMapData.Map.LatLng, 'popup': objMapData.Map.BalloonText, 'type': strCategoryName};
	gobjMap.addIcons(objIcons);
}



