gmapsjs-rails 0.4.11 → 0.4.12
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +2 -1
- data/app/assets/javascripts/gmaps.js +7 -1
- data/app/assets/javascripts/gmaps/overlays.js +6 -0
- data/lib/gmapsjs-rails/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a3872ce22e8fc092a57b099922ac601e63781a59
|
4
|
+
data.tar.gz: 1bedba047490eb29c91eedc6b7e490f728383ef0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b7494f3229b6a4e8c9b668c91dddf3411e31224ac045cd521944a27a61671d1b412ece7a0c8a23f9f3f7375c336cd0f9537d8186e380ebba8c3a996143ba280
|
7
|
+
data.tar.gz: 4be2f0b365805a1312617cc079202943296c35168081799269939515b199ae05b1c0ee6ba966107f332950ecf07c3fe33a4970627db5bba88cddcd44215e7be4
|
data/README.md
CHANGED
@@ -3,7 +3,8 @@
|
|
3
3
|
gmaps.js allows you to use the potential of Google Maps in a simple way.
|
4
4
|
No more extensive documentation or large amount of code.
|
5
5
|
|
6
|
-
gmapsjs-rails bundles gmaps.js in a easy to use Rails Engine compatible with the Asset Pipeline
|
6
|
+
gmapsjs-rails bundles gmaps.js in a easy to use Rails Engine compatible with the Asset Pipeline.
|
7
|
+
Its version is supposed to reflect the gmaps.js release versions.
|
7
8
|
|
8
9
|
## Installation
|
9
10
|
|
@@ -11,7 +11,7 @@
|
|
11
11
|
}(this, function() {
|
12
12
|
|
13
13
|
/*!
|
14
|
-
* GMaps.js v0.4.
|
14
|
+
* GMaps.js v0.4.12
|
15
15
|
* http://hpneo.github.com/gmaps/
|
16
16
|
*
|
17
17
|
* Copyright 2014, Gustavo Leon
|
@@ -768,6 +768,12 @@ GMaps.prototype.drawOverlay = function(options) {
|
|
768
768
|
})(el, stop_overlay_events[ev]);
|
769
769
|
}
|
770
770
|
|
771
|
+
if (options.click) {
|
772
|
+
google.maps.event.addDomListener(overlay.el, 'click', function() {
|
773
|
+
options.click.apply(overlay, [overlay]);
|
774
|
+
});
|
775
|
+
}
|
776
|
+
|
771
777
|
google.maps.event.trigger(this, 'ready');
|
772
778
|
};
|
773
779
|
|
@@ -43,6 +43,12 @@ GMaps.prototype.drawOverlay = function(options) {
|
|
43
43
|
})(el, stop_overlay_events[ev]);
|
44
44
|
}
|
45
45
|
|
46
|
+
if (options.click) {
|
47
|
+
google.maps.event.addDomListener(overlay.el, 'click', function() {
|
48
|
+
options.click.apply(overlay, [overlay]);
|
49
|
+
});
|
50
|
+
}
|
51
|
+
|
46
52
|
google.maps.event.trigger(this, 'ready');
|
47
53
|
};
|
48
54
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: gmapsjs-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pablo Lluch
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-05-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: railties
|