
	function set_View(cls){
		//お店を描画
		top.map.displayLayer("*.*",0);
		top.map.displayLayer("コンビニ.*",1);
		top.map.displayLayer("ガソリンスタンド.*",1);
		top.map.displayLayer(cls + ".*",1);
		top.map.redrawMap();
	}

	function set_mode1(){
		//マウスモードをパニングモードに
		top.map.enablePopup();
		top.map.setMouseMode('pan')
		top.map.event('leftdown','');
		top.map.event('selection','');
	}

	function set_mode2(){
		//マウスモードをパニングモードに
		top.map.disablePopup();
		top.map.setMouseMode('selection')
		//マウスの左ボタンを押し下げたときに実行される命令(PrintXY)を指定する。
		//このとき、引数に座標（経度、緯度）が渡される
		top.map.event('leftdown','top.PrintXY');
		top.map.event('selection','');
	}

	function PrintXY(E,N){
		//取得した座標は「度」単位なので、「度、分、秒」に変換
		//取得した座標は「度」単位なので、「度、分、秒」に変換
		EH=parseInt(E);
		EM=parseInt((E-EH)*60);
		ES=(E-EH-(EM/60))*3600	;
		ESS=(Math.round(ES));	
		EEE=('東経'+EH+'度'+EM+'分'+ESS+'秒');
		
		NH=parseInt(N);
		NM=parseInt((N-NH)*60);
		NS=(N-NH-(NM/60))*3600;
		NSS=(Math.round(NS));	
		NNN=('北緯'+NH+'度'+NM+'分'+NSS+'秒');
		
		window.status = NNN + " " + EEE + "　｜　" + N + " " + E		
	}

	function set_mode3(){
		//マウスモードをパニングモードに
		top.map.enablePopup();
		top.map.setMouseMode('selection')
		top.map.event('leftdown','');
		top.map.event('selection','top.popUrlWindow');
	}

	function popUrlWindow(obj) {
		catego = top.map.objFieldNames(obj);
		for(i=0;i<catego.length;i++){
			Namae = catego[i];
			if(Namae == "URL"){
				HomePageURL = top.map.objFieldVal(obj,Namae ) ; 
				NewWin=window.open(HomePageURL,"");
			}
		}
	}

