質問編集履歴
3
細かい修正2
test
CHANGED
File without changes
|
test
CHANGED
@@ -62,8 +62,8 @@
|
|
62
62
|
|
63
63
|
var contentString = shopN.title;
|
64
64
|
|
65
|
-
var infowindow = new google.maps.InfoWindow({ content: contentString });
|
65
|
+
var infowindowN = new google.maps.InfoWindow({ content: contentString });
|
66
66
|
|
67
|
-
google.maps.event.addListener(shopN, 'click', function() { infowindow.open(map,shopN); });
|
67
|
+
google.maps.event.addListener(shopN, 'click', function() { infowindowN.open(map,shopN); });
|
68
68
|
|
69
69
|
```
|
2
細かい修正
test
CHANGED
File without changes
|
test
CHANGED
@@ -38,17 +38,17 @@
|
|
38
38
|
|
39
39
|
var contentString = shop1.title;
|
40
40
|
|
41
|
-
var infowindow = new google.maps.InfoWindow({ content: contentString });
|
41
|
+
var infowindow1 = new google.maps.InfoWindow({ content: contentString });
|
42
42
|
|
43
|
-
google.maps.event.addListener(shop1, 'click', function() { infowindow.open(map,shop1); });
|
43
|
+
google.maps.event.addListener(shop1, 'click', function() { infowindow1.open(map,shop1); });
|
44
44
|
|
45
45
|
|
46
46
|
|
47
47
|
var contentString = shop2.title;
|
48
48
|
|
49
|
-
var infowindow = new google.maps.InfoWindow({ content: contentString });
|
49
|
+
var infowindow2 = new google.maps.InfoWindow({ content: contentString });
|
50
50
|
|
51
|
-
google.maps.event.addListener(shop2, 'click', function() { infowindow.open(map,shop2); });
|
51
|
+
google.maps.event.addListener(shop2, 'click', function() { infowindow2.open(map,shop2); });
|
52
52
|
|
53
53
|
|
54
54
|
|
1
Infowindowの後にもショップの配列番号●●が必要だったので追記
test
CHANGED
File without changes
|
test
CHANGED
@@ -20,9 +20,9 @@
|
|
20
20
|
|
21
21
|
var contentString = shop●●.title;
|
22
22
|
|
23
|
-
var infowindow = new google.maps.InfoWindow({ content: contentString });
|
23
|
+
var infowindow●● = new google.maps.InfoWindow({ content: contentString });
|
24
24
|
|
25
|
-
google.maps.event.addListener(shop●●, 'click', function() { infowindow.open(map,shop●●); });
|
25
|
+
google.maps.event.addListener(shop●●, 'click', function() { infowindow●●.open(map,shop●●); });
|
26
26
|
|
27
27
|
```
|
28
28
|
|