GoogleMapsの右上、左下の緯度経度を取得する。
var map; ・ ・ ・ function sample() { var bounds = map.getBounds(); var ne = bounds.getNorthEast(); var sw = bounds.getSouthWest(); window.alert("右上緯度:" + ne.lat()); window.alert("右上経度:" + ne.lng()); window.alert("左下緯度:" + sw.lat()); window.alert("左下経度:" + sw.lng()); }
以上です。