',
35.6414500, 139.2836600]
];
}
//八王子インター付近
function hachiojiinter() {
$(".locationSelector").val("#hachiojiinter");
$('.hachiojiinter').css('display','block');
//地図の中心点と拡大率を設定
myOptions = {
zoom: 17,
disableDefaultUI: true,
/*streetViewControl: false,*/
center: new google.maps.LatLng(35.6582300,139.3392200),
mapTypeControlOptions: { mapTypeIds: ['okusama', google.maps.MapTypeId.ROADMAP] }
};
map = new google.maps.Map(document.getElementById("mapCanvas"),myOptions);
styledMapOptions = { name: '八王子インター付近待ち合わせ場所' }
//アイコンの場所の名前と緯度経度を追加
markers = [
['
アドコンタクト八王子店'+
'',
35.6582300, 139.3392200]
];
}
//アイコンの設定
var currentInfoWindow = null;
var gmarkers = [];
function createMarker(latlng,content,map,icon,i){
var iwopts = {maxWidth: 250,};
var infoWindow = new google.maps.InfoWindow(iwopts);
var marker = new google.maps.Marker({
position: latlng,
map: map,
icon: icon,
animation: google.maps.Animation.DROP
});
google.maps.event.addListener(marker, 'click', function() {
if (currentInfoWindow) {
currentInfoWindow.close();
}
/*infoWindow.close();*/
infoWindow.setContent(content);
infoWindow.open(map,marker);
currentInfoWindow = infoWindow;
});
i++;
gmarkers[i] = marker;
}
//アイコンとテキストリンクのクリックイベント
function mapClick(i) {
google.maps.event.trigger(gmarkers[i], "click");
map.setCenter(gmarkers[i].getPosition());
}