質問編集履歴
3
場所移動
test
CHANGED
File without changes
|
test
CHANGED
@@ -54,8 +54,6 @@
|
|
54
54
|
|
55
55
|
var marker = new Y.Marker(latLng);
|
56
56
|
|
57
|
-
markers.push(marker);
|
58
|
-
|
59
57
|
|
60
58
|
|
61
59
|
marker.bind("click", function() {
|
@@ -65,6 +63,8 @@
|
|
65
63
|
ymap.addFeature(label);
|
66
64
|
|
67
65
|
})
|
66
|
+
|
67
|
+
markers.push(marker);
|
68
68
|
|
69
69
|
<% end %>
|
70
70
|
|
2
削除漏れ
test
CHANGED
File without changes
|
test
CHANGED
@@ -60,14 +60,6 @@
|
|
60
60
|
|
61
61
|
marker.bind("click", function() {
|
62
62
|
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
this.
|
68
|
-
|
69
|
-
|
70
|
-
|
71
63
|
var label = new Y.Label(latLng, "<%= shop.name %>");
|
72
64
|
|
73
65
|
ymap.addFeature(label);
|
1
消し忘れの削除
test
CHANGED
File without changes
|
test
CHANGED
@@ -35,8 +35,6 @@
|
|
35
35
|
![左上のmarkerをクリックしても、labelの位置がずれる](ef5a2676f13a0ad8a0f310ef05c3e2c3.png)
|
36
36
|
|
37
37
|
|
38
|
-
|
39
|
-
また3を実現するために、
|
40
38
|
|
41
39
|
```ruby
|
42
40
|
|