質問編集履歴
4
ソースを修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -35,7 +35,7 @@
|
|
35
35
|
そのソースも載せておきます。
|
36
36
|
|
37
37
|
```ここに言語を入力
|
38
|
-
google.maps.event.addListener(
|
38
|
+
google.maps.event.addListener(marker, 'click', function(){
|
39
39
|
$('#'+i).trigger('click');
|
40
40
|
});
|
41
41
|
```
|
3
リンクのクラス名を書きました。
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
ソースを少し書きました。
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
|
-
|
35
|
+
そのソースも載せておきます。
|
36
|
+
|
37
|
+
```ここに言語を入力
|
38
|
+
google.maps.event.addListener(infoWindow, 'mouseover', function(){
|
39
|
+
$('#'+i).trigger('click');
|
40
|
+
});
|
41
|
+
```
|
1
特になし
title
CHANGED
File without changes
|
body
CHANGED
File without changes
|