markerclustererplus-rails 2.0.3 → 2.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -5,7 +5,7 @@ The files will be added to the asset pipeline and available for you to use.
5
5
 
6
6
  For info on how to use the library see the original documentation:
7
7
 
8
- [MarkerClustererPlus for Google Maps V3](http://google-maps-utility-library-v3.googlecode.com/svn/tags/markerclustererplus/2.0.3/docs/reference.html)
8
+ [MarkerClustererPlus for Google Maps V3](http://google-maps-utility-library-v3.googlecode.com/svn/tags/markerclustererplus/2.0.4/docs/reference.html)
9
9
 
10
10
  ## Installation
11
11
 
@@ -17,4 +17,13 @@ You can include it by adding the following to your javascript file:
17
17
 
18
18
  //= require markerclusterer
19
19
 
20
- You're done!
20
+ ## Limitations
21
+
22
+ Note that to include the MarkerClustererPlus icons in the asset pipeline we override the original configuration for setting the icon properties. This means that changing the following properties will not have any effect when using this gem:
23
+
24
+ * imageExtension
25
+ * imagePath
26
+ * imageSizes
27
+
28
+ This should not be a problem since the reason to using this gem in the first place is to include everything in the asset pipeline. Should you for some reason want to get the icons from somewhere else it should be possible to override this with the 'styles' property, although we have not tested this ourself.
29
+
@@ -1,5 +1,5 @@
1
1
  module Markerclustererplus
2
2
  module Rails
3
- VERSION = "2.0.3"
3
+ VERSION = "2.0.4"
4
4
  end
5
5
  end
@@ -3,7 +3,7 @@
3
3
 
4
4
  /**
5
5
  * @name MarkerClustererPlus for Google Maps V3
6
- * @version 2.0.3 [September 21, 2011]
6
+ * @version 2.0.4 [September 21, 2011]
7
7
  * @author Gary Little
8
8
  * @fileoverview
9
9
  * The library creates and manages per-zoom-level clusters for large amounts of markers.
@@ -130,7 +130,7 @@ ClusterIcon.prototype.onAdd = function () {
130
130
 
131
131
  this.getPanes().overlayMouseTarget.appendChild(this.div_);
132
132
 
133
- google.maps.event.addDomListener(this.div_, "click", function () {
133
+ google.maps.event.addDomListener(this.div_, "click", function (e) {
134
134
  var mc = cClusterIcon.cluster_.getMarkerClusterer();
135
135
  /**
136
136
  * This event is fired when a cluster marker is clicked.
@@ -151,6 +151,11 @@ ClusterIcon.prototype.onAdd = function () {
151
151
  if (mz && (mc.getMap().getZoom() > mz)) {
152
152
  mc.getMap().setZoom(mz + 1);
153
153
  }
154
+ // Prevent event propagation to map:
155
+ e.cancelBubble = true;
156
+ if (e.stopPropagation) {
157
+ e.stopPropagation();
158
+ }
154
159
  }
155
160
  });
156
161
 
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: markerclustererplus-rails
3
3
  version: !ruby/object:Gem::Version
4
- hash: 9
4
+ hash: 7
5
5
  prerelease:
6
6
  segments:
7
7
  - 2
8
8
  - 0
9
- - 3
10
- version: 2.0.3
9
+ - 4
10
+ version: 2.0.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - RogerE
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-03-02 00:00:00 Z
18
+ date: 2012-03-03 00:00:00 Z
19
19
  dependencies: []
20
20
 
21
21
  description: This gem provides the MarkerClustererPlus assets for your Rails application.