<?xml version="1.0" encoding="UTF-8"?><Module><ModulePrefs title="GHMマプレット"description="ジオコーディングして、経緯度を表示"author="MUSHA Hiroyuki"author_email="no-email@somewhere.com"height="300"><Require feature="sharedmap"/></ModulePrefs><Content type="html"><![CDATA[<form action="#" onsubmit="showAddress(this.address.value); return false">  <p>    場所：<input type="text" size="20" id="address" value="山中湖" />    <button onClick="showaddress(address.value);">検索</button> <br />緯度：<input type="text" value=""  id="click_lat">  <br />経度：<input type="text" value="" id="click_long">  <br />    緯度, 経度：     <input type="text" size="50" value="" id="latlng">  </p><script type="text/javascript">    var map = new GMap2();var geocoder = new GClientGeocoder();map.setCenter(new GLatLng(35.425435, 138.875846), 13);//    map.addControl(new GLargeMapControl());//    map.addControl(new GMapTypeControl());GEvent.addListener(map, 'click',  function(overlay, point) {    if (point) {      document.getElementById('click_lat').value = point.y;      document.getElementById('click_long').value = point.x;      document.getElementById('latlng').value = point.y + ", " + point.x;    }  }	);function showAddress(address) {  geocoder.getLatLng( address, showTheLatLng );}function showTheLatLng (latlng) {  var address = document.getElementById("address").value;  if (!latlng) {    alert("ご指定の住所（" + address + "）はジオコーディングできませんでした。");  }  else {    map.setCenter(latlng, 13);//    map.addControl(new GLargeMapControl());//    map.addControl(new GMapTypeControl());    var marker = new GMarker(latlng);    map.addOverlay(marker);      document.getElementById('click_lat').value = latlng.lat();      document.getElementById('click_long').value = latlng.lng();      document.getElementById('latlng').value = latlng.lat() + ", " + latlng.lng();    marker.openInfoWindowHtml(address);  }}</script>]]></Content></Module>