glib-web 0.0.21 → 0.0.22
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 83e7c1dd936a426102434b1da1aee139a2ffcd8f511cc5f438de696bbd05b77e
|
4
|
+
data.tar.gz: c435b4b59871d16c33dc0eaafcf8da9cd4ce6e630e7652505ecce0d9891823f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 0a5545a70b3afb3ab884abca28cdf1ef8eb561b596da63c61d756bce76acae835091b6ff6039f884f99e17e4549c0eda921ce54702a3c6f255ed2ae26f087850
|
7
|
+
data.tar.gz: f841a232c859a706f65b12168658795a1f50aa49b10cd14361513020fcb49fbf83860b1ef8a44d594274154eeef9966529e842ef4c45f2d8e6dbef36c6ad02fc
|
@@ -6,7 +6,7 @@ json_ui_page json do |page|
|
|
6
6
|
page.scroll childViews: ->(scroll) do
|
7
7
|
scroll.label text: "\n"
|
8
8
|
scroll.h1 text: 'Map'
|
9
|
-
scroll.map latitude: 13.4837, longitude: 144.7917, zoom: 11, height: 250, dataUrl: json_ui_garage_url(path: 'views/map_data')
|
9
|
+
scroll.map latitude: 13.4837, longitude: 144.7917, zoom: 11, width: 'matchParent', height: 250, dataUrl: json_ui_garage_url(path: 'views/map_data')
|
10
10
|
end
|
11
11
|
end
|
12
12
|
|
@@ -1,29 +1,41 @@
|
|
1
1
|
|
2
2
|
json.pins do
|
3
|
+
|
4
|
+
# TODO: Make sure the vuejs frontend passes the map's center point (lat/long) to the server
|
5
|
+
latitude = params[:lat] || 0
|
6
|
+
longitude = params[:long] || 0
|
7
|
+
subsubtitle = "Current location: #{latitude}, #{longitude}"
|
8
|
+
|
3
9
|
json.child! do
|
4
|
-
json.
|
5
|
-
json.
|
10
|
+
# json.id 'place1'
|
11
|
+
json.latitude 13.516680 + rand(0..0.1)
|
12
|
+
json.longitude 144.817322 + rand(0..0.1)
|
6
13
|
json.infoWindow do
|
7
14
|
json.title 'Place 1'
|
8
15
|
json.subtitle 'Big shopping mall'
|
16
|
+
json.subsubtitle subsubtitle
|
9
17
|
end
|
10
18
|
end
|
11
19
|
|
12
20
|
json.child! do
|
13
|
-
json.
|
14
|
-
json.
|
21
|
+
# json.id 'place2'
|
22
|
+
json.latitude 13.473001 + rand(0..0.1)
|
23
|
+
json.longitude 144.771303 + rand(0..0.1)
|
15
24
|
json.infoWindow do
|
16
25
|
json.title 'Place 2'
|
17
26
|
json.subtitle 'High class restaurant'
|
27
|
+
json.subsubtitle subsubtitle
|
18
28
|
end
|
19
29
|
end
|
20
30
|
|
21
31
|
json.child! do
|
22
|
-
json.
|
23
|
-
json.
|
32
|
+
# json.id 'place3'
|
33
|
+
json.latitude 13.375903 + rand(0..0.1)
|
34
|
+
json.longitude 144.749791 + rand(0..0.1)
|
24
35
|
json.infoWindow do
|
25
36
|
json.title 'Place 3'
|
26
37
|
json.subtitle 'High class restaurant'
|
38
|
+
json.subsubtitle subsubtitle
|
27
39
|
end
|
28
40
|
end
|
29
41
|
|