markerclustererplus-rails 2.0.5 → 2.0.6

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.
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.5/docs/reference.html)
8
+ [MarkerClustererPlus for Google Maps V3](http://google-maps-utility-library-v3.googlecode.com/svn/tags/markerclustererplus/2.0.6/docs/reference.html)
9
9
 
10
10
  ## Installation
11
11
 
@@ -1,5 +1,5 @@
1
1
  module Markerclustererplus
2
2
  module Rails
3
- VERSION = "2.0.5"
3
+ VERSION = "2.0.6"
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.5 [September 30, 2011]
6
+ * @version 2.0.6 [November 6, 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.
@@ -613,6 +613,9 @@ Cluster.prototype.isMarkerAlreadyAdded_ = function (marker) {
613
613
  * The default is an array of {@link ClusterIconStyle} elements whose properties are derived
614
614
  * from the values for <code>imagePath</code>, <code>imageExtension</code>, and
615
615
  * <code>imageSizes</code>.
616
+ * @property {number} [batchSize=MarkerClusterer.BATCH_SIZE] Set this property to the
617
+ * number of markers to be processed in a single batch when using a browser other than
618
+ * Internet Explorer (for Internet Explorer, use the batchSizeIE property instead).
616
619
  * @property {number} [batchSizeIE=MarkerClusterer.BATCH_SIZE_IE] When Internet Explorer is
617
620
  * being used, markers are processed in several batches with a small delay inserted between
618
621
  * each batch in an attempt to avoid Javascript timeout errors. Set this property to the
@@ -681,13 +684,12 @@ function MarkerClusterer(map, opt_markers, opt_options) {
681
684
  this.imageExtension_ = opt_options.imageExtension || MarkerClusterer.IMAGE_EXTENSION;
682
685
  this.imageSizes_ = opt_options.imageSizes || MarkerClusterer.IMAGE_SIZES;
683
686
  this.calculator_ = opt_options.calculator || MarkerClusterer.CALCULATOR;
687
+ this.batchSize_ = opt_options.batchSize || MarkerClusterer.BATCH_SIZE;
684
688
  this.batchSizeIE_ = opt_options.batchSizeIE || MarkerClusterer.BATCH_SIZE_IE;
685
689
 
686
690
  if (navigator.userAgent.toLowerCase().indexOf("msie") !== -1) {
687
691
  // Try to avoid IE timeout when processing a huge number of markers:
688
692
  this.batchSize_ = this.batchSizeIE_;
689
- } else {
690
- this.batchSize_ = MarkerClusterer.BATCH_SIZE;
691
693
  }
692
694
 
693
695
  this.setupStyles_();
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: 5
4
+ hash: 3
5
5
  prerelease:
6
6
  segments:
7
7
  - 2
8
8
  - 0
9
- - 5
10
- version: 2.0.5
9
+ - 6
10
+ version: 2.0.6
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-04 00:00:00 Z
18
+ date: 2012-03-05 00:00:00 Z
19
19
  dependencies: []
20
20
 
21
21
  description: This gem provides the MarkerClustererPlus assets for your Rails application.