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: '095a0c14d85e8c91b506ea4cef39fece00672209c3adc99cab6289ee1eeb6141'
4
- data.tar.gz: bc0fd6f195c6bc50d5f3f5bba81d9d0ad3cf3bc3dd0ffab277277c2d156dcff6
3
+ metadata.gz: 83e7c1dd936a426102434b1da1aee139a2ffcd8f511cc5f438de696bbd05b77e
4
+ data.tar.gz: c435b4b59871d16c33dc0eaafcf8da9cd4ce6e630e7652505ecce0d9891823f3
5
5
  SHA512:
6
- metadata.gz: d3290e5b381ea98e0fac49a3bab0f3ba7c4aca018f057fe96ff44e75bce11f0a21f4a439e01120bb391ce1c21e6316c74cdd738d62c520e3b6c0c40f4b46769f
7
- data.tar.gz: 9b61796a396e1da87d985f8d5cdd1a435cfb0d52f425701d9f924b1f37297179efbd335de76772269fa13ab6c2a1e599f6d7541794752586f368e785fcd849b4
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.latitude 13.516680
5
- json.longitude 144.817322
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.latitude 13.473001
14
- json.longitude 144.771303
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.latitude 13.375903
23
- json.longitude 144.749791
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
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: glib-web
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.21
4
+ version: 0.0.22
5
5
  platform: ruby
6
6
  authors:
7
7
  - ''