質問編集履歴
3
改善が完了
title
CHANGED
File without changes
|
body
CHANGED
@@ -16,11 +16,9 @@
|
|
16
16
|
{
|
17
17
|
shop_name: '{{$shop->shop_name}}',
|
18
18
|
address: '{{$shop->address}}',
|
19
|
-
tag:
|
19
|
+
tag: '@foreach($shop->tags as $tag)<i class="fa-2x cc {{$tag->font_name}}" title=""></i>@endforeach',
|
20
|
-
{{$tag->font_name}},
|
21
|
-
@endforeach]
|
22
20
|
lat: {{$shop->lati}},
|
23
|
-
|
21
|
+
lng: {{$shop->longi}}
|
24
22
|
},
|
25
23
|
@endif
|
26
24
|
@endforeach
|
@@ -43,7 +41,7 @@
|
|
43
41
|
});
|
44
42
|
|
45
43
|
infoWindow[i] = new google.maps.InfoWindow({ // 吹き出しの追加
|
46
|
-
content: '<div class="map" style="padding:0.5rem;"><h4><a href="{{ url('/shops/' . $shop->id) }}">'+ markerData[i]['shop_name'] +'</a></h4><p>' + markerData[i]['address'] + '</p>
|
44
|
+
content: '<div class="map" style="padding:0.5rem;"><h4><a href="{{ url('/shops/' . $shop->id) }}">'+ markerData[i]['shop_name'] +'</a></h4><p>' + markerData[i]['address'] + '</p>' + markerData[i]['tag'] + '</i></div>' // 吹き出しに表示する内容
|
47
45
|
});
|
48
46
|
markerEvent(i); // マーカーにクリックイベントを追加
|
49
47
|
|
2
指摘された内容の修正
title
CHANGED
File without changes
|
body
CHANGED
@@ -16,9 +16,9 @@
|
|
16
16
|
{
|
17
17
|
shop_name: '{{$shop->shop_name}}',
|
18
18
|
address: '{{$shop->address}}',
|
19
|
-
@foreach($shop->tags as $tag)
|
19
|
+
tag: [@foreach($shop->tags as $tag)
|
20
|
-
|
20
|
+
{{$tag->font_name}},
|
21
|
-
@endforeach
|
21
|
+
@endforeach]
|
22
22
|
lat: {{$shop->lati}},
|
23
23
|
lng: {{$shop->longi}}
|
24
24
|
},
|
@@ -43,9 +43,8 @@
|
|
43
43
|
});
|
44
44
|
|
45
45
|
infoWindow[i] = new google.maps.InfoWindow({ // 吹き出しの追加
|
46
|
-
|
47
|
-
|
48
|
-
});
|
46
|
+
content: '<div class="map" style="padding:0.5rem;"><h4><a href="{{ url('/shops/' . $shop->id) }}">'+ markerData[i]['shop_name'] +'</a></h4><p>' + markerData[i]['address'] + '</p><i class="fa-2x cc ' + markerData[i]['tag'] + '"></i></div>' // 吹き出しに表示する内容
|
47
|
+
});
|
49
48
|
markerEvent(i); // マーカーにクリックイベントを追加
|
50
49
|
|
51
50
|
}
|
1
誤字
title
CHANGED
File without changes
|
body
CHANGED
@@ -16,7 +16,9 @@
|
|
16
16
|
{
|
17
17
|
shop_name: '{{$shop->shop_name}}',
|
18
18
|
address: '{{$shop->address}}',
|
19
|
+
@foreach($shop->tags as $tag)
|
19
20
|
tag: '{{$tag->font_name}}',
|
21
|
+
@endforeach
|
20
22
|
lat: {{$shop->lati}},
|
21
23
|
lng: {{$shop->longi}}
|
22
24
|
},
|