Zoomを変更したときその値を取得することができる。(このサンプルはVersion1で記述してある)
GEvent.addListener(map, 'zoomend', function(oldZoomLevel, newZoomLevel){ (処理) }
<div id="map" style="width: 800px; height: 600px"></div> <script type="text/javascript"> //<![CDATA[ if (GBrowserIsCompatible()) { var map = new GMap(document.getElementById("map")); map.addControl(new GLargeMapControl()); map.addControl(new GMapTypeControl()); map.centerAndZoom(new GPoint(136.65352821350098, 34.560647315894904), 13); } GEvent.addListener(map, 'zoomend', function(oldZoomLevel, newZoomLevel) { // document.getElementById("zoom_old").innerHTML = oldZoomLevel; // document.getElementById("zoom_new").innerHTML = newZoomLevel; document.f.zoomlevel.value = 17 - newZoomLevel; // var poptext = 17 - newZoomLevel; // window.alert(newZoomLevel); }); //]]> </script> <FORM NAME ="f"> <INPUT TYPE ="TEXT" name="zoomlevel" > </FORM>