質問編集履歴

4

ソースを修正

2017/01/24 11:30

投稿

bird-toriyama
bird-toriyama

スコア25

test CHANGED
File without changes
test CHANGED
@@ -72,7 +72,7 @@
72
72
 
73
73
  ```ここに言語を入力
74
74
 
75
- google.maps.event.addListener(infoWindow, 'mouseover', function(){
75
+ google.maps.event.addListener(marker, 'click', function(){
76
76
 
77
77
  $('#'+i).trigger('click');
78
78
 

3

リンクのクラス名を書きました。

2017/01/24 11:30

投稿

bird-toriyama
bird-toriyama

スコア25

test CHANGED
File without changes
test CHANGED
@@ -79,3 +79,9 @@
79
79
  });
80
80
 
81
81
  ```
82
+
83
+
84
+
85
+ また、吹き出しの中にあるクリックイベント起こすリンクの
86
+
87
+ classはiframeとします。

2

ソースを少し書きました。

2017/01/24 11:25

投稿

bird-toriyama
bird-toriyama

スコア25

test CHANGED
File without changes
test CHANGED
@@ -44,6 +44,38 @@
44
44
 
45
45
 
46
46
 
47
- 説明しやすくするために、吹き出し内にある
47
+ マーカーから吹き出しを出す仕組みは以下の通りです。
48
48
 
49
+
50
+
51
+ ```ここに言語を入力
52
+
53
+ google.maps.event.addListener(marker, 'click', function()
54
+
55
+ {
56
+
57
+ infoWindow.setContent(html); //◆インフォウィンドウ内に表示するコンテンツをセット
58
+
59
+ infoWindow.open(map,marker); //◆インフォウィンドウオープン
60
+
61
+ });
62
+
63
+ ```
64
+
65
+ ちなみに、吹き出しのリンクからクリックイベントを起こそうとする前は
66
+
67
+ マーカーをクリックするとクリックイベントが起こるようにしていました。
68
+
49
- リンククラはiframeとします。
69
+ ソーも載せておきます。
70
+
71
+
72
+
73
+ ```ここに言語を入力
74
+
75
+ google.maps.event.addListener(infoWindow, 'mouseover', function(){
76
+
77
+ $('#'+i).trigger('click');
78
+
79
+ });
80
+
81
+ ```

1

特になし

2017/01/24 11:21

投稿

bird-toriyama
bird-toriyama

スコア25

test CHANGED
File without changes
test CHANGED
File without changes