volt-google-maps 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/app/google-maps/controllers/main_controller.rb +16 -11
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c4b2a866c7bdf8a045d291c79ed098f9e650c1d4
|
4
|
+
data.tar.gz: 287289f701d5e80c9877bf2458fc03869807456a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6ae9b93c42b4c69c806614377dbb883aa86e114627c69a2bd9e4078b2a68e5fd31747bb51b29f4dbf8bfb324ece35ed62c655fd922cdec77e9ad239644e86803
|
7
|
+
data.tar.gz: 3dd584f193a7b760d33e19160a028b5b9015d076315d4a3bfcd3b1f4921c0f2e813d759668d9d7db1c1dd802ec3e97bee5300494d0c870b8b497c368a3956d2a
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.3
|
@@ -52,20 +52,25 @@ module GoogleMaps
|
|
52
52
|
end
|
53
53
|
end
|
54
54
|
|
55
|
-
@add_listener
|
56
|
-
|
55
|
+
@add_listener.remove if @add_listener
|
56
|
+
@remove_listener.remove if @remove_listener
|
57
57
|
|
58
|
-
|
59
|
-
|
60
|
-
|
58
|
+
if markers.respond_to?(:on)
|
59
|
+
@add_listener = markers.on('added') do |index|
|
60
|
+
marker = markers[index]
|
61
|
+
|
62
|
+
puts "ADD MARKER AT: #{index}"
|
63
|
+
add_marker(marker) do |result|
|
64
|
+
@markers[index] = result
|
65
|
+
end
|
61
66
|
end
|
62
|
-
end
|
63
67
|
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
68
|
+
@remove_listener = markers.on('removed') do |index|
|
69
|
+
puts "DELETE AT INDEX: #{index}"
|
70
|
+
marker = @markers.delete_at(index)
|
71
|
+
`console.log('marker: ', marker);`
|
72
|
+
remove_marker(marker.to_n)
|
73
|
+
end
|
69
74
|
end
|
70
75
|
|
71
76
|
end.watch!
|