markerclustererplus-rails 2.1 → 2.1.1

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: 72e3cfc9cc563595f309c46868249ccd402a4e1f
4
- data.tar.gz: 964fc86c9024fca01c07dd30fb53fe073849e6ae
3
+ metadata.gz: 2264bd52a4192103452f12366ab7d4572c6cb1a5
4
+ data.tar.gz: 75132a20476fd00a954ab0883586128390e48e14
5
5
  SHA512:
6
- metadata.gz: 67369f0678981ba8931af04ba1f4ccbe6499cc4ea4f78ccbca8315dfa62b3abf81622338b501965a0a7aa79865a118fbf6e0abc4202ab0dbe4232f0b6545795e
7
- data.tar.gz: f90f0d75c39904a685725406e757cc9f5097553f4736149d12e1a0067bb8c1147c59904a0d6aef3aede287617e3ca101269f23a5626665af74eae0afbd31e722
6
+ metadata.gz: 1b8a18a80cb2cf7bb0ca90bb4d032a34712625f7874c1a1f68284cb4ab795b3db86b0d1e7f662a64e89a24d47586a84f2fd6f6e767ee9f85cfe3a7dccf697950
7
+ data.tar.gz: 65b60d511571f7e60957579f94d125b5a0a890864c95a2f6ac1549797a154f3b548e30eea9ab9d6b276451bea816cf0f482e61c59f86d54fdc5d4350f94affbd
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.1/docs/reference.html)
8
+ [MarkerClustererPlus for Google Maps V3](http://google-maps-utility-library-v3.googlecode.com/svn/tags/markerclustererplus/2.1.1/docs/reference.html)
9
9
 
10
10
  MarkerClustererPlus is an enhanced Google Maps V3 implementation of the V2 MarkerClusterer.
11
11
 
@@ -1,6 +1,6 @@
1
1
  /**
2
2
  * @name MarkerClustererPlus for Google Maps V3
3
- * @version 2.1 [November 3, 2013]
3
+ * @version 2.1.1 [November 4, 2013]
4
4
  * @author Gary Little
5
5
  * @fileoverview
6
6
  * The library creates and manages per-zoom-level clusters for large amounts of markers.
@@ -25,7 +25,7 @@
25
25
  * This file modified for use with the Rails asset pipeline
26
26
  * https://github.com/RogerE/markerclustererplus-rails
27
27
  * gem markerclustererplus-rails
28
- * gem version 2.1
28
+ * gem version 2.1.1
29
29
  * @author Roger Ertesvag
30
30
  * NOTE: to include the MarkerClustererPlus icons in the asset pipeline the gem overrides
31
31
  * the original configuration for setting the icon properties. This means that changing
@@ -267,11 +267,20 @@ ClusterIcon.prototype.show = function () {
267
267
  ((-1 * spriteV) + this.height_) + "px, " + (-1 * spriteH) + "px);";
268
268
  }
269
269
  img += "'>";
270
- // (Would like to use "width: inherit;" below, but doesn't work with MSIE)
271
- this.div_.innerHTML = img + "<div style='position: absolute; " +
272
- "top: " + this.anchorText_[0] + "px; " +
273
- "left: " + this.anchorText_[1] + "px; " +
274
- "width: " + this.width_ + "px;'>" + this.sums_.text + "</div>";
270
+ this.div_.innerHTML = img + "<div style='" +
271
+ "position: absolute;" +
272
+ "top: " + this.anchorText_[0] + "px;" +
273
+ "left: " + this.anchorText_[1] + "px;" +
274
+ "color: " + this.textColor_ + ";" +
275
+ "font-size: " + this.textSize_ + "px;" +
276
+ "font-family: " + this.fontFamily_ + ";" +
277
+ "font-weight: " + this.fontWeight_ + ";" +
278
+ "font-style: " + this.fontStyle_ + ";" +
279
+ "text-decoration: " + this.textDecoration_ + ";" +
280
+ "text-align: center;" +
281
+ "width: " + this.width_ + "px;" +
282
+ "line-height:" + this.height_ + "px;" +
283
+ "'>" + this.sums_.text + "</div>";
275
284
  if (typeof this.sums_.title === "undefined" || this.sums_.title === "") {
276
285
  this.div_.title = this.cluster_.getMarkerClusterer().getTitle();
277
286
  } else {
@@ -326,13 +335,9 @@ ClusterIcon.prototype.setCenter = function (center) {
326
335
  */
327
336
  ClusterIcon.prototype.createCss = function (pos) {
328
337
  var style = [];
329
- style.push('width:' + this.width_ + 'px; height:' + this.height_ + 'px;');
330
- style.push('text-align:center; line-height:' + this.height_ + 'px;');
331
- style.push('cursor:pointer; top:' + pos.y + 'px; left:' +
332
- pos.x + 'px; color:' + this.textColor_ + '; position:absolute; font-size:' +
333
- this.textSize_ + 'px; font-family:' + this.fontFamily_ + '; font-weight:' +
334
- this.fontWeight_ + '; font-style:' + this.fontStyle_ + '; text-decoration:' +
335
- this.textDecoration_ + ';');
338
+ style.push("cursor: pointer;");
339
+ style.push("position: absolute; top: " + pos.y + "px; left: " + pos.x + "px;");
340
+ style.push("width: " + this.width_ + "px; height: " + this.height_ + "px;");
336
341
  return style.join("");
337
342
  };
338
343
 
@@ -1205,10 +1210,12 @@ MarkerClusterer.prototype.addMarker = function (marker, opt_nodraw) {
1205
1210
  * @param {boolean} [opt_nodraw] Set to <code>true</code> to prevent redrawing.
1206
1211
  */
1207
1212
  MarkerClusterer.prototype.addMarkers = function (markers, opt_nodraw) {
1208
- var i;
1209
- for (i = 0; i < markers.length; i++) {
1210
- this.pushMarkerTo_(markers[i]);
1211
- }
1213
+ var key;
1214
+ for (key in markers) {
1215
+ if (markers.hasOwnProperty(key)) {
1216
+ this.pushMarkerTo_(markers[key]);
1217
+ }
1218
+ }
1212
1219
  if (!opt_nodraw) {
1213
1220
  this.redraw_();
1214
1221
  }
@@ -1,5 +1,5 @@
1
1
  module Markerclustererplus
2
2
  module Rails
3
- VERSION = "2.1"
3
+ VERSION = "2.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: markerclustererplus-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: '2.1'
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - RogerE
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-11-12 00:00:00.000000000 Z
11
+ date: 2013-11-19 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: This gem provides the MarkerClustererPlus assets for your Rails application.
14
14
  email:
@@ -49,7 +49,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
49
49
  version: '0'
50
50
  requirements: []
51
51
  rubyforge_project: markerclustererplus-rails
52
- rubygems_version: 2.1.10
52
+ rubygems_version: 2.1.11
53
53
  signing_key:
54
54
  specification_version: 4
55
55
  summary: Use MarkerClustererPlus with Rails Asset Pipeline