質問編集履歴

3

改善が完了

2018/07/11 14:02

投稿

eq_space
eq_space

スコア38

test CHANGED
File without changes
test CHANGED
@@ -34,15 +34,11 @@
34
34
 
35
35
  address: '{{$shop->address}}',
36
36
 
37
- tag: [@foreach($shop->tags as $tag)
37
+ tag: '@foreach($shop->tags as $tag)<i class="fa-2x cc {{$tag->font_name}}" title=""></i>@endforeach',
38
-
39
- {{$tag->font_name}},
40
-
41
- @endforeach]
42
38
 
43
39
  lat: {{$shop->lati}},
44
40
 
45
- lng: {{$shop->longi}}
41
+ lng: {{$shop->longi}}
46
42
 
47
43
  },
48
44
 
@@ -88,7 +84,7 @@
88
84
 
89
85
  infoWindow[i] = new google.maps.InfoWindow({ // 吹き出しの追加
90
86
 
91
- 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>' // 吹き出しに表示する内容
87
+ 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>' // 吹き出しに表示する内容
92
88
 
93
89
  });
94
90
 

2

指摘された内容の修正

2018/07/11 14:02

投稿

eq_space
eq_space

スコア38

test CHANGED
File without changes
test CHANGED
@@ -34,11 +34,11 @@
34
34
 
35
35
  address: '{{$shop->address}}',
36
36
 
37
- @foreach($shop->tags as $tag)
37
+ tag: [@foreach($shop->tags as $tag)
38
38
 
39
- tag: '{{$tag->font_name}}',
39
+ {{$tag->font_name}},
40
40
 
41
- @endforeach
41
+ @endforeach]
42
42
 
43
43
  lat: {{$shop->lati}},
44
44
 
@@ -88,11 +88,9 @@
88
88
 
89
89
  infoWindow[i] = new google.maps.InfoWindow({ // 吹き出しの追加
90
90
 
91
+ 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>' // 吹き出しに表示する内容
91
92
 
92
-
93
- 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><span><i class="fa-2x cc {{$tag->font_name}}"></i></div>' // 吹き出しに表示する内容
94
-
95
- });
93
+ });
96
94
 
97
95
  markerEvent(i); // マーカーにクリックイベントを追加
98
96
 

1

誤字

2018/07/11 12:16

投稿

eq_space
eq_space

スコア38

test CHANGED
File without changes
test CHANGED
@@ -34,7 +34,11 @@
34
34
 
35
35
  address: '{{$shop->address}}',
36
36
 
37
+ @foreach($shop->tags as $tag)
38
+
37
39
  tag: '{{$tag->font_name}}',
40
+
41
+ @endforeach
38
42
 
39
43
  lat: {{$shop->lati}},
40
44