回答編集履歴
2
誤字の修正
answer
CHANGED
@@ -21,7 +21,7 @@
|
|
21
21
|
data[i][2] = getdata[i]["A"];
|
22
22
|
}
|
23
23
|
|
24
|
-
function attachMessage(marker
|
24
|
+
function attachMessage(marker,msg) {
|
25
25
|
google.maps.event.addListener(marker, 'click', function() {
|
26
26
|
new google.maps.Geocoder().geocode({
|
27
27
|
latLng: marker.getPosition()
|
1
コードのミスお修正
answer
CHANGED
@@ -21,14 +21,14 @@
|
|
21
21
|
data[i][2] = getdata[i]["A"];
|
22
22
|
}
|
23
23
|
|
24
|
-
function attachMessage(marker) {
|
24
|
+
function attachMessage(marker、msg) {
|
25
25
|
google.maps.event.addListener(marker, 'click', function() {
|
26
26
|
new google.maps.Geocoder().geocode({
|
27
27
|
latLng: marker.getPosition()
|
28
28
|
}, function(result, status) {
|
29
29
|
if (status == google.maps.GeocoderStatus.OK) {
|
30
30
|
new google.maps.InfoWindow({
|
31
|
-
content:
|
31
|
+
content: msg
|
32
32
|
}).open(marker.getMap(), marker);
|
33
33
|
}
|
34
34
|
});
|