// Creates a marker at the given point with the given number label
function createMarker(point, cat, name) {
// Create our "tiny" marker icon
var icon = new GIcon();
icon.image = "http://labs.google.com/ridefinder/images/mm_20_white.png";
if (cat == "stay"){
icon.image = "http://labs.google.com/ridefinder/images/mm_20_green.png";
}
if (cat == "eat"){
icon.image = "http://labs.google.com/ridefinder/images/mm_20_yellow.png";
}
if (cat == "shop"){
icon.image = "http://labs.google.com/ridefinder/images/mm_20_blue.png";
}
if (cat == "hot"){
icon.image = "http://labs.google.com/ridefinder/images/mm_20_red.png";
}
icon.shadow = "http://labs.google.com/ridefinder/images/mm_20_shadow.png";
icon.iconSize = new GSize(12, 20);
icon.shadowSize = new GSize(22, 20);
icon.iconAnchor = new GPoint(6, 20);
icon.infoWindowAnchor = new GPoint(5, 1);
var marker = new GMarker(point,icon);
GEvent.addListener(marker, "click", function() {
marker.openInfoWindowHtml(name );
}
);
return marker;
}
// Creates a marker at the given point with the given number label
function createLandmark(point, icnurl) {
// Create our "tiny" marker icon
var icon = new GIcon();
icon.image = icnurl;
icon.iconSize = new GSize(35, 35);
icon.iconAnchor = new GPoint(17, 17);
icon.infoWindowAnchor = new GPoint(5, 1);
var marker = new GMarker(point,icon);
return marker;
}
function load() {
if (GBrowserIsCompatible()) {
var map = new GMap2(document.getElementById("map"));
map.addControl(new GSmallMapControl());
map.addControl(new GMapTypeControl());
map.setCenter(new GLatLng(35.709060, 139.795145), 15);
map.setMapType(G_SATELLITE_TYPE);
// パンして地図の存在感を高める
window.setTimeout(function() {
map.panTo(new GLatLng(35.712611, 139.795297));
}, 1000);
// ランドマーク:雷門
var point = new GLatLng(35.711144916021844, 139.79637444019318);
map.addOverlay(createLandmark(point, "http://www.asakusa-samurai.com/common/icnKaminarimon.jpg"));
// スポットマーカー作成
var point = new GLatLng(35.709233, 139.797171);
map.addOverlay(createMarker(point, "stay",
"KHAOSAN TOKYO
2-1-5 Kaminarimon, Taito-ku, Tokyo
03-3842-8286
Detail Information"
));
// スポットマーカー作成
var point = new GLatLng(35.705077, 139.792292);
map.addOverlay(createMarker(point, "stay",
"K's House Tokyo
3-20-10, Kuramae, Taito-ku, Tokyo
03-5833-0555
Detail Information"
));
// スポットマーカー作成
var point = new GLatLng(35.712485, 139.789109);
map.addOverlay(createMarker(point, "stay",
"Tokyo Ryokan
2-4-8 Nishi-Asakusa, Taito-ku, Tokyo
090-8879-3599
Detail Information"
));
// スポットマーカー作成
var point = new GLatLng(35.718916, 139.788998);
map.addOverlay(createMarker(point, "stay",
"Sakura Ryokan
2-6-2, Iriya, Taito-ku, Tokyo, Japan
03-3876-8118
Detail Information"
));
// スポットマーカー作成
var point = new GLatLng(35.713199, 139.790801);
map.addOverlay(createMarker(point, "stay",
"Toukaisou (Ryokan)
2-16-12 Nishiasakusa Taitou-Ku Tokyo
03-3844-5618
Detail Information"
));
// スポットマーカー作成
var point = new GLatLng(35.712375, 139.796161);
map.addOverlay(createMarker(point, "stay",
"Asakusa Shigetsu
1-31-11 Asakusa, Taito-ku, Tokyo
03-3843-2345
Detail Information"
));
// スポットマーカー作成
var point = new GLatLng(35.711422, 139.794187);
map.addOverlay(createMarker(point, "stay",
"Asakusa Central Hotel
1-5-3 Asakusa, Taito-ku, Tokyo
03-3847-2222
Detail Information"
));
// スポットマーカー作成
var point = new GLatLng(35.708972, 139.790924);
map.addOverlay(createMarker(point, "stay",
"Asakusa Vista Hotel
2-2-9 Kotobuki, Taito-ku, Tokyo
03-3842-8421
Detail Information"
));
// スポットマーカー作成
var point = new GLatLng(35.715465, 139.791944);
map.addOverlay(createMarker(point, "stay",
"Asakusa View Hotel
3-17-1 Nishiasakusa, Taito-ku, Tokyo
03-3847-1111
Detail Information"
));
// スポットマーカー作成
var point = new GLatLng(35.71105, 139.796884);
map.addOverlay(createMarker(point, "stay",
"Asakusa Plaza Hotel
1-2-1 Asakusa, Taito-ku, Tokyo
03-3845-2621
Detail Information"
));
// スポットマーカー作成
var point = new GLatLng(35.7152, 139.798791);
map.addOverlay(createMarker(point, "stay",
"Asakusa Mikawaya
2-7-11 Hanakawado, Taito-ku, Tokyo
03-3841-7130
Detail Information"
));
// スポットマーカー作成
var point = new GLatLng(35.714113, 139.797764);
map.addOverlay(createMarker(point, "stay",
"Ichifuji Hotel
2-35-8 Asakusa, Taito-ku, Tokyo
03-3841-6519
Detail Information"
));
// スポットマーカー作成
var point = new GLatLng(35.712149, 139.795803);
map.addOverlay(createMarker(point, "stay",
"Kamogawa
1-30-10 Asakusa, Taito-ku, Tokyo
03-3843-2681
Detail Information"
));
// スポットマーカー作成
var point = new GLatLng(35.710382, 139.797163);
map.addOverlay(createMarker(point, "stay",
"Hotel Kawase
2-19-14 Kaminarimon, Taito-ku, Tokyo
03-3843-4910
Detail Information"
));
// スポットマーカー作成
var point = new GLatLng(35.716518, 139.79324);
map.addOverlay(createMarker(point, "stay",
"Sadachiyo
2-20-1 Asakusa, Taito-ku, Tokyo
03-3842-6431
Detail Information"
));
// スポットマーカー作成
var point = new GLatLng(35.711586, 139.792809);
map.addOverlay(createMarker(point, "stay",
"Sun Hotel Asakusa
1-9-2 Asakusa, Taito-ku, Tokyo
03-5828-3351
Detail Information"
));
// スポットマーカー作成
var point = new GLatLng(35.710691, 139.79202);
map.addOverlay(createMarker(point, "stay",
"Hotel Sun Route Asakusa
1-8-5 Kaminarimon, Taito-ku, Tokyo
03-3847-1511
Detail Information"
));
// スポットマーカー作成
var point = new GLatLng(35.718151, 139.80166);
map.addOverlay(createMarker(point, "stay",
"Hotel Sky Court Asakusa
6-35-8 Asakusa, Taito-ku, Tokyo
03-3875-4411
Detail Information"
));
// スポットマーカー作成
var point = new GLatLng(35.711919, 139.791382);
map.addOverlay(createMarker(point, "stay",
"Asakusa Taito Ryokan
2-1-4 Nishi-Asakusa, Taito-ku, Tokyo
03-3843-2822
Detail Information"
));
// スポットマーカー作成
var point = new GLatLng(35.711535, 139.796783);
map.addOverlay(createMarker(point, "stay",
"Chikuma Ryokan
1-19-2 Asakusa, Taito-ku, Tokyo
03-3841-9078
Detail Information"
));
// スポットマーカー作成
var point = new GLatLng(35.706177, 139.793853);
map.addOverlay(createMarker(point, "stay",
"Toyoko Inn Asakusa Komagata
1-3-13 Komagata, Taito-ku, Tokyo
03-3841-1045
Detail Information"
));
// スポットマーカー作成
var point = new GLatLng(35.718426, 139.792339);
map.addOverlay(createMarker(point, "stay",
"Toyoko Inn Asakusa Senzoku
1-15-1 Senzoku, Taito-ku, Tokyo
03-3873-1045
Detail Information"
));
// スポットマーカー作成
var point = new GLatLng(35.711887, 139.798933);
map.addOverlay(createMarker(point, "stay",
"Hotel Dormy Inn Asakusa
1-3-4 Hanakawado, Taito-ku, Tokyo
03-3845-1122
Detail Information"
));
// スポットマーカー作成
var point = new GLatLng(35.706888, 139.794389);
map.addOverlay(createMarker(point, "stay",
"Hotel CHISAN Inn Asakusa
1-4-17 Komagata, Taito-ku, Tokyo
03-3843-0108
Detail Information"
));
// スポットマーカー作成
var point = new GLatLng(35.710221, 139.797612);
map.addOverlay(createMarker(point, "stay",
"Hotel New Gyominso
2-20-4 Kaminarimon, Taito-ku, Tokyo
03-3844-5117
Detail Information"
));
// スポットマーカー作成
var point = new GLatLng(35.716343, 139.797376);
map.addOverlay(createMarker(point, "stay",
"Park Inn Hidaka
3-4-12 Asakusa, Taito-ku, Tokyo
03-3871-6777
Detail Information"
));
// スポットマーカー作成
var point = new GLatLng(35.71778, 139.799389);
map.addOverlay(createMarker(point, "stay",
"New Hotel Bandung
6-29-5 Asakusa, Taito-ku, Tokyo
03-3874-9433
Detail Information"
));
// スポットマーカー作成
var point = new GLatLng(35.718262, 139.799086);
map.addOverlay(createMarker(point, "stay",
"Family Hotel Bandung
4-49-14 Asakusa, Taito-ku, Tokyo
03-3876-2866
Detail Information"
));
// スポットマーカー作成
var point = new GLatLng(35.712113, 139.796196);
map.addOverlay(createMarker(point, "stay",
"Hotel Mikawaya
1-30-12 Asakusa, Taito-ku, Tokyo
03-3841-8954
Detail Information"
));
// スポットマーカー作成
var point = new GLatLng(35.717183, 139.802078);
map.addOverlay(createMarker(point, "stay",
"Business Hotel Minato
7-5-4 Asakusa, Taito-ku, Tokyo
03-3876-5051
Detail Information"
));
// スポットマーカー作成
var point = new GLatLng(35.709718, 139.795898);
map.addOverlay(createMarker(point, "eat",
"
Namiki Yabu Soba
2-11-9 Kaminarimon, Taito-ku, Tokyo
03-3841-1340
Detail Information"
));
// スポットマーカー作成
var point = new GLatLng(35.712758, 139.795502);
map.addOverlay(createMarker(point, "eat",
"Daikoku-ya
1-38-10 Asakusa, Taito-ku, Tokyo
03-3844-1111
Detail Information"
));
// スポットマーカー作成
var point = new GLatLng(35.711752, 139.795467);
map.addOverlay(createMarker(point, "shop",
"Some no Anbo
1-21-12 Asakusa, Taito-ku, Tokyo
03-5806-4446
Detail Information"
));
// スポットマーカー作成
var point = new GLatLng(35.712728, 139.794832);
map.addOverlay(createMarker(point, "shop",
"Kimino Tatsumi
Suite 2F 1-39-11 Asakusa, Taito-ku, Tokyo
03-3843-7606
Detail Information"
));
// スポットマーカー作成
var point = new GLatLng(35.71262, 139.794628);
map.addOverlay(createMarker(point, "shop",
"Sanki
1-39-13 Asakusa, Taito-ku, Tokyo
03-3842-0523
Detail Information"
));
// スポットマーカー作成
var point = new GLatLng(35.712215, 139.794743);
map.addOverlay(createMarker(point, "shop",
"Wabunka-Club Ray
1-28-10 Asakusa, Taito-ku, Tokyo
03-5806-2253
Detail Information"
));
// スポットマーカー作成
var point = new GLatLng(35.711955, 139.794631);
map.addOverlay(createMarker(point, "shop",
"Fujiya Hakimono
1-22-11 Asakusa, Taito-ku, Tokyo
03-3841-0228
Detail Information"
));
// スポットマーカー作成
var point = new GLatLng(35.712386, 139.794727);
map.addOverlay(createMarker(point, "shop",
"Hannari
1-39-15 Asakusa, Taito-ku, Tokyo
03-5830-0155
Detail Information"
));
// スポットマーカー作成
var point = new GLatLng(35.712241, 139.795038);
map.addOverlay(createMarker(point, "shop",
"
Mori Gin
1-29-6 Asakusa, Taito-ku, Tokyo
03-3844-8821
Detail Information"
));
// スポットマーカー作成
var point = new GLatLng(35.71181, 139.794628);
map.addOverlay(createMarker(point, "shop",
"Saraya
1-16-10 Asakusa, Taito-ku, Tokyo
03-3841-3305
Detail Information"
));
// スポットマーカー作成
var point = new GLatLng(35.711308, 139.794494);
map.addOverlay(createMarker(point, "shop",
"Kikusue Hamono
1-5-1 Asakusa, Taito-ku, Tokyo
03-3841-7725
Detail Information"
));
// スポットマーカー作成
var point = new GLatLng(35.711508, 139.795389);
map.addOverlay(createMarker(point, "shop",
"Yasue Kumoido
1-17-6 Asakusa, Taito-ku, Tokyo
03-3841-7435
Detail Information"
));
// スポットマーカー作成
var point = new GLatLng(35.711266, 139.794787);
map.addOverlay(createMarker(point, "shop",
"
Hakonaga
1-4-5 Asakusa, Taito-ku, Tokyo
03-3843-8719
Detail Information"
));
// スポットマーカー作成
var point = new GLatLng(35.711266, 139.794787);
map.addOverlay(createMarker(point, "shop",
"
Yamayoshi
1-4-5 Asakusa, Taito-ku, Tokyo
03-3841-8844
Detail Information"
));
// スポットマーカー作成
var point = new GLatLng(35.711653, 139.794574);
map.addOverlay(createMarker(point, "shop",
"Water Color
1-16-11 Asakusa, Taito-ku, Tokyo
03-5828-6541
Detail Information"
));
// スポットマーカー作成
var point = new GLatLng(35.711508, 139.795389);
map.addOverlay(createMarker(point, "shop",
"
Gaigendo
1-17-5 Asakusa, Taito-ku, Tokyo
03-3841-4184
Detail Information"
));
// スポットマーカー作成
var point = new GLatLng(35.711763, 139.794977);
map.addOverlay(createMarker(point, "shop",
"
Bekko Isogai
1-21-3 Asakusa, Taito-ku, Tokyo
03-3845-1211
Detail Information"
));
// スポットマーカー作成
var point = new GLatLng(35.713655, 139.793461);
map.addOverlay(createMarker(point, "eat",
"
Suzuyoshi
2-5-6 Asakusa, Taito-ku, Tokyo
03-3841-6081
Detail Information"
));
// スポットマーカー作成
var point = new GLatLng(35.71262, 139.794628);
map.addOverlay(createMarker(point, "eat",
"nakakiyo
1-39-13 Asakusa, Taito-ku, Tokyo
03-3841-4015
Detail Information"
));
// スポットマーカー作成
var point = new GLatLng(35.712014, 139.79463);
map.addOverlay(createMarker(point, "eat",
"funewa
1-22-10 Asakusa, Taito-ku, Tokyo
03-3842-2781
Detail Information"
));
// スポットマーカー作成
var point = new GLatLng(35.711653, 139.794574);
map.addOverlay(createMarker(point, "eat",
"Takadaya
1-16-11 Asakusa, Taito-ku, Tokyo
03-5246-6390
Detail Information"
));
// スポットマーカー作成
var point = new GLatLng(35.71148, 139.794469);
map.addOverlay(createMarker(point, "eat",
"Maguro-Bito
1-5-9 Asakusa, Taito-ku, Tokyo
03-3844-8736
Detail Information"
));
// スポットマーカー作成
var point = new GLatLng(35.71148, 139.794469);
map.addOverlay(createMarker(point, "eat",
"Darts Bar Milan
1-5-9-2F Asakusa, Taito-ku, Tokyo
03-3845-0831
Detail Information"
));
// スポットマーカー作成
var point = new GLatLng(35.712241, 139.795038);
map.addOverlay(createMarker(point, "eat",
"Asakusa Imahan
1-29-6 Asakusa, Taito-ku, Tokyo
Detail Information"
));
// スポットマーカー作成
var point = new GLatLng(35.71184, 139.794956);
map.addOverlay(createMarker(point, "eat",
"Oimoyasan Koshin
03-3842-8166
Detail Information"
));
// スポットマーカー作成
var point = new GLatLng(35.71184, 139.794956);
map.addOverlay(createMarker(point, "eat",
"Mangando
1-21-5 Asakusa, Taito-ku, Tokyo
03-5828-0548
Detail Information"
));
// スポットマーカー作成
var point = new GLatLng(35.711508, 139.795389);
map.addOverlay(createMarker(point, "eat",
"Angelus
1-17-6 Asakusa, Taito-ku, Tokyo
03-3841-9761
Detail Information"
));
// スポットマーカー作成
var point = new GLatLng(35.711508, 139.795389);
map.addOverlay(createMarker(point, "eat",
"Mont Blanc
1-17-5 Asakusa, Taito-ku, Tokyo
03-3841-7072
Detail Information"
));
}
}