volt-google-maps 0.0.4 → 0.0.5
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 +10 -17
- 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: 7c820bd4a6ffce1a029e189c88ca2ea072622fd2
|
4
|
+
data.tar.gz: 6a6aa20a6db7f1d35346c7602b7a8024e9527333
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 69863431886859067d0516c636aaad199485921f9206ff0920ed68fc05b301c7de5fc8d8c7be60d092dc166091cd395fa1ed14ee79cff83dc58b35b0aaec83fa
|
7
|
+
data.tar.gz: 395362bd5710784147dcb98d1ee586fedd13237a1bb3bf5124810f5f245f4991573cfc6d853fb46ca7205661e6464ce9a76090181a65016988d891df18505307
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.5
|
@@ -92,26 +92,19 @@ module GoogleMaps
|
|
92
92
|
end
|
93
93
|
|
94
94
|
def set_zoom
|
95
|
-
@first_zoom = true
|
96
95
|
-> do
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
# Track
|
101
|
-
attrs.zoom
|
96
|
+
level = attrs.zoom
|
97
|
+
if level.blank?
|
98
|
+
level = 8
|
102
99
|
else
|
103
|
-
level =
|
104
|
-
if level.blank?
|
105
|
-
level = 8
|
106
|
-
else
|
107
|
-
level = (level || 8).to_i
|
108
|
-
end
|
109
|
-
|
110
|
-
level_n = level.to_n
|
111
|
-
`if (self.map.getZoom() != level_n) {`
|
112
|
-
`self.map.setZoom(level_n);`
|
113
|
-
`}`
|
100
|
+
level = (level || 8).to_i
|
114
101
|
end
|
102
|
+
|
103
|
+
puts "SET LEVEL: #{level.inspect}"
|
104
|
+
level_n = level.to_n
|
105
|
+
`if (self.map.getZoom() != level_n) {`
|
106
|
+
`self.map.setZoom(level_n);`
|
107
|
+
`}`
|
115
108
|
end.watch!
|
116
109
|
end
|
117
110
|
|