質問するログイン新規登録

質問編集履歴

4

ソースを修正

2017/01/24 11:30

投稿

bird-toriyama
bird-toriyama

スコア25

title CHANGED
File without changes
body CHANGED
@@ -35,7 +35,7 @@
35
35
  そのソースも載せておきます。
36
36
 
37
37
  ```ここに言語を入力
38
- google.maps.event.addListener(infoWindow, 'mouseover', function(){
38
+ google.maps.event.addListener(marker, 'click', function(){
39
39
  $('#'+i).trigger('click');
40
40
  });
41
41
  ```

3

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

2017/01/24 11:30

投稿

bird-toriyama
bird-toriyama

スコア25

title CHANGED
File without changes
body CHANGED
@@ -38,4 +38,7 @@
38
38
  google.maps.event.addListener(infoWindow, 'mouseover', function(){
39
39
  $('#'+i).trigger('click');
40
40
  });
41
- ```
41
+ ```
42
+
43
+ また、吹き出しの中にあるクリックイベント起こすリンクの
44
+ classはiframeとします。

2

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

2017/01/24 11:25

投稿

bird-toriyama
bird-toriyama

スコア25

title CHANGED
File without changes
body CHANGED
@@ -21,5 +21,21 @@
21
21
  起こす方法はありますでしょうか。
22
22
  もしあれば教えていただけませんでしょうか。
23
23
 
24
- 説明しやすくするために、吹き出し内にある
24
+ マーカーから吹き出しを出す仕組みは以下の通りです。
25
+
26
+ ```ここに言語を入力
27
+ google.maps.event.addListener(marker, 'click', function()
28
+ {
29
+ infoWindow.setContent(html); //◆インフォウィンドウ内に表示するコンテンツをセット
30
+ infoWindow.open(map,marker); //◆インフォウィンドウオープン
31
+ });
32
+ ```
33
+ ちなみに、吹き出しのリンクからクリックイベントを起こそうとする前は
34
+ マーカーをクリックするとクリックイベントが起こるようにしていました。
25
- リンククラはiframeとします。
35
+ ソーも載せておきます。
36
+
37
+ ```ここに言語を入力
38
+ google.maps.event.addListener(infoWindow, 'mouseover', function(){
39
+ $('#'+i).trigger('click');
40
+ });
41
+ ```

1

特になし

2017/01/24 11:21

投稿

bird-toriyama
bird-toriyama

スコア25

title CHANGED
File without changes
body CHANGED
File without changes