scrivito_google_maps_widget 0.1.4 → 0.1.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7d9c06ebd161fde051baf9f5998506adb306d6a3
4
- data.tar.gz: b48f40991db5da8cf2cef7c3f74d316f3f6251bb
3
+ metadata.gz: 130fd0f60e93856770442f642c1a3ae7e78864c0
4
+ data.tar.gz: c3a25e1532f76ddc16ec1015e1ff425440d3d55e
5
5
  SHA512:
6
- metadata.gz: 2a05fec17a0d56b93172bd7a4596d792287a741ac8b3677cc9e5b716b93705de0a7e109ee1dfb066876907bfd0d421355d6942414f21b295735e87b9da6e0212
7
- data.tar.gz: d1708dc74fc42e2a788d4fa8a3fe0c50985c369bc5fc68b694967e4eb33dcc3c4e24f45f357ae56c46d58ab251633dc7b6f8efe1e0fc4fc54ab2cb9a2318a80a
6
+ metadata.gz: 122004dadd7da0ab08c3e2305d2cd88b368b3412efc68c7cfe13ae45a516dc76386efe14cf6341ebad434c6ab0acb788424f3b3b9d2a93f8ac97e20b17b903e2
7
+ data.tar.gz: 4fd7895ea13433fb204ff83e8f8b9e4591e317d3656f8602d65e055284b16cbe59491fb3ee9851d6afa2844d14cb3db263dd8ac6176ebbe2c33f0fd3c596e528
@@ -32,6 +32,7 @@ $ ->
32
32
  mapOptions =
33
33
  center: new google.maps.LatLng(-33.8688, 151.2195)
34
34
  zoom: 13
35
+ scrollwheel: false
35
36
 
36
37
  map = new google.maps.Map(canvas[0], mapOptions)
37
38
  canvas.data('map', map)
@@ -0,0 +1 @@
1
+ //= require_tree ./scrivito_google_maps_widget
@@ -1,4 +1,4 @@
1
1
  .google-maps .map {
2
- height: 500px;
3
2
  width: 100%;
3
+ height: 100%;
4
4
  }
@@ -4,12 +4,13 @@
4
4
  border: 1px solid transparent;
5
5
  border-radius: 2px 0 0 2px;
6
6
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
7
- height: 32px;
8
7
  margin-top: 16px;
9
8
  padding: 0 11px 0 13px;
10
- font-size: 15px;
11
- font-weight: 300;
12
9
  outline: none;
13
10
  text-overflow: ellipsis;
14
11
  width: 400px;
15
12
  }
13
+
14
+ .google-maps .map {
15
+ min-height: 30px;
16
+ }
@@ -0,0 +1,3 @@
1
+ /*
2
+ *= require_tree ./scrivito_google_maps_widget
3
+ */
@@ -1,3 +1,4 @@
1
1
  class GoogleMapsWidget < Widget
2
2
  attribute :address, :string
3
+ attribute :height, :string, default: '50vh'
3
4
  end
@@ -0,0 +1,13 @@
1
+ <%= scrivito_details_for 'Address' do %>
2
+ <div class="google-maps" style="height: 320px">
3
+ <% if scrivito_in_editable_view? %>
4
+ <%= scrivito_tag(:input, widget, :address, type: 'text', data: { editor: 'google-maps' }) %>
5
+ <% end %>
6
+
7
+ <div class="map" data-location="<%= widget.address %>"></div>
8
+ </div>
9
+ <% end %>
10
+
11
+ <%= scrivito_details_for 'Height' do %>
12
+ <%= scrivito_tag(:div, widget, :height) %>
13
+ <% end %>
@@ -1,4 +1,4 @@
1
- <div class="google-maps">
1
+ <div class="google-maps" style="height: <%= widget.height %>">
2
2
  <% if scrivito_in_editable_view? %>
3
3
  <%= scrivito_tag(:input, widget, :address, type: 'text', data: { editor: 'google-maps' }) %>
4
4
  <% end %>
@@ -1,3 +1,3 @@
1
1
  module ScrivitoGoogleMapsWidget
2
- VERSION = '0.1.4'
2
+ VERSION = '0.1.5'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: scrivito_google_maps_widget
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Scrivito
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-21 00:00:00.000000000 Z
11
+ date: 2015-07-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -63,11 +63,14 @@ files:
63
63
  - README.md
64
64
  - Rakefile
65
65
  - app/assets/images/widget_preview_map.png
66
- - app/assets/javascripts/google_maps_widget/application.js.coffee
67
- - app/assets/javascripts/google_maps_widget/editing.js.coffee
68
- - app/assets/stylesheets/google_maps_widget/application.css
69
- - app/assets/stylesheets/google_maps_widget/editing.css
66
+ - app/assets/javascripts/scrivito_google_maps_widget.js
67
+ - app/assets/javascripts/scrivito_google_maps_widget/application.js.coffee
68
+ - app/assets/javascripts/scrivito_google_maps_widget/editing.js.coffee
69
+ - app/assets/stylesheets/scrivito_google_maps_widget.css
70
+ - app/assets/stylesheets/scrivito_google_maps_widget/application.css
71
+ - app/assets/stylesheets/scrivito_google_maps_widget/editing.css
70
72
  - app/models/google_maps_widget.rb
73
+ - app/views/google_maps_widget/details.html.erb
71
74
  - app/views/google_maps_widget/show.html.erb
72
75
  - app/views/google_maps_widget/thumbnail.html.erb
73
76
  - lib/scrivito_google_maps_widget.rb
@@ -94,7 +97,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
94
97
  version: '0'
95
98
  requirements: []
96
99
  rubyforge_project:
97
- rubygems_version: 2.2.2
100
+ rubygems_version: 2.4.5
98
101
  signing_key:
99
102
  specification_version: 4
100
103
  summary: Scrivito Google Maps Widget.