1//<![CDATA[ 2 3//mapã¨geocoderãªãã¸ã§ã¯ããåæå 4var map = null; 5var geocoder = null; 6 7//MTãã使ã»ç·¯åº¦çµåº¦ãèªã¿è¾¼ã¿ 8 9//ãããã£ã¼ã« : 使 10var profileAddress = "æ±äº¬é½ãããéå¸å°ä¸é116"; 11 12//ãããã£ã¼ã«ä½æ 13var accessAddress = ""; 14 15var mapLatLon = ""; 16 17 18var inputLat; 19var inputLon; 20 21 22//Google Mapsèªã¿è¾¼ã¿ 23window.onload = function(){ 24 25 if (GBrowserIsCompatible()) { 26 ////////// html ã® idå map ã«Google Maps èªã¿è¾¼ã¿ ////////// 27 map = new GMap2(document.getElementById("googleMapsArea")); 28 ////////// æä½ã¤ã³ã¿ã¼ãã§ã¼ã¹ã®è¡¨ç¤º ////////// 29 map.addControl(new GLargeMapControl());//ã³ã³ããã¼ã«ãã¿ã³ 30 //map.addControl(new GMapTypeControl());//å°å³ã»èªç©ºåçåãæ¿ã 31 //map.addControl(new GOverviewMapControl());//縮å°å°å³ 32 33 //ã¹ã±ã¼ã«ãè¨å® 34 ctrlObj = new GScaleControl(); 35 map.addControl(ctrlObj); 36 37 //googleMapã®åæä½ç½®ãè¨å® 38 map.setCenter(new GLatLng(39.095963, 136.933594), 4); 39 40 //geocoderãªãã¸ã§ã¯ããæ°è¦ä½æ 41 geocoder = new GClientGeocoder(); 42 } 43 44 if(mapLatLon != ""){ 45 var mapLatLonAry = mapLatLon.split(","); 46 inputLat = mapLatLonAry[0]; 47 inputLon = mapLatLonAry[1]; 48 inputLat = inputLat.replace("\s", ""); 49 inputLat = inputLat.replace("ã", ""); 50 inputLon = inputLon.replace("\s", ""); 51 inputLon = inputLon.replace("ã", ""); 52 showLatLon(inputLat, inputLon); 53 }else if(accessAddress != ""){ 54 showAddress(accessAddress); 55 }else if(profileAddress != ""){ 56 showAddress(profileAddress); 57 } 58} 59 60////////// 緯度çµåº¦ã§ãã¼ã«ã¼ã表示 ////////// 61function showLatLon(lat, lon) { 62 //ãã¼ã«ã¼ã®æä½ 63 64 //ååã®ãã¼ã«ã¼ãå ¨ã¦æ¶å» 65 map.clearOverlays(); 66 67 //ãã¼ã«ã¼ã®åº§æ¨ãã«è¨å® 68 var marker = new GMarker(new GLatLng( lat, lon)); 69 70 //ãã¼ã«ã¼ã表示 71 map.setCenter(new GLatLng(lat, lon), 14);//å°å³ã®ä¸å¿ãã対象ã®ç·¯åº¦çµåº¦ã«è¨å® 72 map.addOverlay(marker); 73} 74 75////////// å°åã§ãã¼ã«ã¼ã表示 ////////// 76function showAddress(address) { 77 if (geocoder) { 78 //geocoder ãªãã¸ã§ã¯ãã使ããã¦ããã°ã form ã®å¤ã address ã«å ¥åãã¦å®è¡ 79 geocoder.getLatLng( 80 address, 81 function(point) { 82 if (!point) { 83 //対象ã®ä½æãè¦ã¤ãããªãã£ãå ´å 84 //ãã¼ã«ã¼ãåé¤ 85 map.clearOverlays(); 86 //ã¨ã©ã¼æã表示 87 marker.openInfoWindowHtml("<strong>" + address + ãè¦ã¤ããã¾ãã + "</strong>");//form ã§å ¥åãããå¤ããå¹ãã ãã«è¡¨ç¤º 88 } else { 89 //対象ã®ä½æãè¦ã¤ãã£ãå ´å 90 map.clearOverlays();//ååã®ãã¼ã«ã¼ãå ¨ã¦æ¶å» 91 var marker = new GMarker(point);//ãã¼ã«ã¼ãã対象ã®ç·¯åº¦çµåº¦ã«è¨å® 92 map.setCenter(point, 14);//å°å³ã®ä¸å¿ãã対象ã®ç·¯åº¦çµåº¦ã«è¨å® 93 map.addOverlay(marker);//ãã¼ã«ã¼ã表示 94 } 95 } 96 ); 97 } 98} 99 100//]]>
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.