scrivito_google_maps_widget 0.1.6 → 0.1.7
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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a75973cd95aa70573896ff2d174a5b8cc26dc768
|
4
|
+
data.tar.gz: f8e60e59a0e96e4b8cb6df30af64c41fadff874f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5cd6b27c037da2b0e73f77579ca3db5bb2b5e1578067d42f167f2114739be54ae0d28924735bfa9e72649aa6dafac95a128d4fc8e9ee3727d2c89280bdad8367
|
7
|
+
data.tar.gz: 725b124b0d25fabe4b53bb6db7437bb43181fd5e2cda6928e93ea305215ecf62a9615c4e34bb3f003d1e06fecf3181023be2589ad0a0ef79807c960575e5f806
|
data/README.md
CHANGED
@@ -12,11 +12,11 @@ Add this line to your application's `Gemfile`:
|
|
12
12
|
|
13
13
|
Include the Google Maps Places JavaScript library in your application.html.erb:
|
14
14
|
|
15
|
-
javascript_include_tag('//maps.googleapis.com/maps/api/js?v=3.exp&
|
15
|
+
javascript_include_tag('//maps.googleapis.com/maps/api/js?v=3.exp&libraries=places')
|
16
16
|
|
17
17
|
Include the Google Maps Places JavaScript library in your scrivito_dialog.html.erb:
|
18
18
|
|
19
|
-
javascript_include_tag('//maps.googleapis.com/maps/api/js?v=3.exp&
|
19
|
+
javascript_include_tag('//maps.googleapis.com/maps/api/js?v=3.exp&libraries=places')
|
20
20
|
|
21
21
|
Also, add this line to your application stylesheet manifest:
|
22
22
|
|
@@ -12,6 +12,6 @@
|
|
12
12
|
<%= scrivito_tag(:input, widget, :address, type: 'text') %>
|
13
13
|
<% end %>
|
14
14
|
|
15
|
-
<div class="map" data-location="<%= widget.address %>"></div>
|
15
|
+
<div class="map" data-zoom="<%= widget.zoom_level %>" data-location="<%= widget.address %>"></div>
|
16
16
|
</div>
|
17
17
|
<% end %>
|
@@ -3,5 +3,5 @@
|
|
3
3
|
<%= scrivito_tag(:input, widget, :address, type: 'text') %>
|
4
4
|
<% end %>
|
5
5
|
|
6
|
-
<div class="map" data-zoom="<%= widget.
|
6
|
+
<div class="map" data-zoom="<%= widget.zoom_level %>" data-location="<%= widget.address %>"></div>
|
7
7
|
</div>
|
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
|
+
version: 0.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Scrivito
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-03-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|