var latlng = new google.maps.LatLng(0, 0); var myOptions = { zoom: 18, center: latlng, scrollwheel: true, scaleControl: false, disableDefaultUI: false, mapTypeId: google.maps.MapTypeId.ROADMAP }; var map = new google.maps.Map(document.getElementById("map"), myOptions);
var geocoder_map = new google.maps.Geocoder(); var address = '東京都千代田区麹町3-5'; geocoder_map.geocode( { 'address': address}, function(results, status) { if (status == google.maps.GeocoderStatus.OK) { map.setCenter(results[0].geometry.location); var image = "http://www.aiss21.co.jp/wp-content/themes/aiss/images/combined.png"; var marker = new google.maps.Marker({ map: map, icon: image, position: map.getCenter() });
var contentString = '東京メトロ有楽町線 麹町駅
1番出口より徒歩1分!
東京都千代田区麹町3-5 得水ビル5F
TEL03-5214-5615(代表)';
var infowindow = new google.maps.InfoWindow({
content: contentString
});
google.maps.event.addListener(marker, 'click', function() { infowindow.open(map,marker); });
infowindow.open(map,marker);
} else { alert("Geocode was not successful for the following reason: " + status); } });
var latlng = new google.maps.LatLng(0, 0); var myOptions = { zoom: 16, center: latlng, scrollwheel: true, scaleControl: false, disableDefaultUI: false, mapTypeId: google.maps.MapTypeId.ROADMAP }; var map326 = new google.maps.Map(document.getElementById("map326"), myOptions);
var geocoder_map326 = new google.maps.Geocoder(); var address = '神奈川県川崎市高津区溝口1-12-8'; geocoder_map326.geocode( { 'address': address}, function(results, status) { if (status == google.maps.GeocoderStatus.OK) { map326.setCenter(results[0].geometry.location);
var marker = new google.maps.Marker({ map: map326,
position: map326.getCenter() });
} else { alert("Geocode was not successful for the following reason: " + status); } });
Copyright ©2012 Aiss - All rights reserved.