質問編集履歴

1

コード修正

2019/03/15 02:48

投稿

s_diff
s_diff

スコア107

test CHANGED
File without changes
test CHANGED
@@ -20,43 +20,41 @@
20
20
 
21
21
  <script type="text/javascript">
22
22
 
23
- handler = Gmaps.build('Google');
23
+ handler = Gmaps.build('Google');
24
24
 
25
- handler.buildMap({ provider: {}, internal: {id: 'map'}}, function(){
25
+ handler.buildMap({ provider: {}, internal: {id: 'map'}}, function(){
26
26
 
27
- markers = handler.addMarkers([
27
+ markers = handler.addMarkers([
28
28
 
29
- {
29
+ {
30
30
 
31
- "lat": <%= @product.latitude %>,
31
+ "lat": <%= @product.latitude %>,
32
32
 
33
- "lng": <%= @product.longitude %>,
33
+ "lng": <%= @product.longitude %>,
34
34
 
35
- "picture": {
35
+ "picture": {
36
36
 
37
- "width": 32,
37
+ "width": 32,
38
38
 
39
- "height": 32
39
+ "height": 32
40
40
 
41
- },
41
+ },
42
42
 
43
- "infowindow": '<%= @product.address %>'
43
+ "infowindow": '<%= @product.address %>'
44
44
 
45
- }
45
+ }
46
46
 
47
- ]);
47
+ ]);
48
48
 
49
- handler.bounds.extendWith(markers);
49
+ handler.bounds.extendWith(markers);
50
50
 
51
- handler.fitMapToBounds();
51
+ handler.fitMapToBounds();
52
52
 
53
- handler.getMap().setZoom(15);
53
+ handler.getMap().setZoom(15);
54
54
 
55
- });
55
+ });
56
56
 
57
- </script>
57
+ </script>
58
-
59
- <% end %>
60
58
 
61
59
  ```
62
60