markerclustererplus-rails 2.1.8 → 2.1.9
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 92f5f109e06fbdf36f01d937f481a9ca4fefd94eac6bc8c12dc5ec6bf331a354
|
4
|
+
data.tar.gz: afc135498d1cb01df454b8620b416a609eb1587a51681e489a58d274033e57ed
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2786313b3ef0e11286cba7e7dc85803b8ed31db6b5d0deec61630e1435ecb4158591a4a2c5550a6a4f88047ec5568041690c14ada77852f851be592dc18ac59a
|
7
|
+
data.tar.gz: e92a9eb4ca5c60a638ff2381974efb16831bb04f18126df411057011878534f9a3820605f561c3623a417e1b9929f772734f59381024da72144bbb1066e466b1
|
@@ -1,6 +1,6 @@
|
|
1
1
|
/**
|
2
2
|
* @name MarkerClustererPlus for Google Maps V3
|
3
|
-
* @version 2.1.
|
3
|
+
* @version 2.1.9 [March 14, 2018]
|
4
4
|
* @author Gary Little
|
5
5
|
* @fileoverview
|
6
6
|
* The library creates and manages per-zoom-level clusters for large amounts of markers.
|
@@ -23,7 +23,7 @@
|
|
23
23
|
* This file modified for use with the Rails asset pipeline
|
24
24
|
* https://github.com/RogerE/markerclustererplus-rails
|
25
25
|
* gem markerclustererplus-rails
|
26
|
-
* gem version 2.1.
|
26
|
+
* gem version 2.1.9
|
27
27
|
* @author Roger Ertesvag
|
28
28
|
* NOTE: to include the MarkerClustererPlus icons in the asset pipeline the gem overrides
|
29
29
|
* the original configuration for setting the icon properties. This means that changing
|
@@ -127,6 +127,9 @@ ClusterIcon.prototype.onAdd = function () {
|
|
127
127
|
var cClusterIcon = this;
|
128
128
|
var cMouseDownInCluster;
|
129
129
|
var cDraggingMapByCluster;
|
130
|
+
var gmVersion = google.maps.version.split(".");
|
131
|
+
|
132
|
+
gmVersion = parseInt(gmVersion[0] * 100, 10) + parseInt(gmVersion[1], 10);
|
130
133
|
|
131
134
|
this.div_ = document.createElement("div");
|
132
135
|
this.div_.className = this.className_;
|
@@ -147,10 +150,12 @@ ClusterIcon.prototype.onAdd = function () {
|
|
147
150
|
});
|
148
151
|
|
149
152
|
// March 1, 2018: Fix for this 3.32 exp bug, https://issuetracker.google.com/issues/73571522
|
150
|
-
// But it doesn't work with earlier releases so
|
151
|
-
|
152
|
-
|
153
|
-
|
153
|
+
// But it doesn't work with earlier releases so do a version check.
|
154
|
+
if (gmVersion >= 332) { // Ugly version-dependent code
|
155
|
+
google.maps.event.addDomListener(this.div_, "touchstart", function (e) {
|
156
|
+
e.stopPropagation();
|
157
|
+
});
|
158
|
+
}
|
154
159
|
|
155
160
|
google.maps.event.addDomListener(this.div_, "click", function (e) {
|
156
161
|
cMouseDownInCluster = false;
|
@@ -766,7 +771,7 @@ MarkerClusterer.prototype.onAdd = function () {
|
|
766
771
|
var minZoom = this.getMap().minZoom || 0;
|
767
772
|
var maxZoom = Math.min(this.getMap().maxZoom || 100,
|
768
773
|
this.getMap().mapTypes[this.getMap().getMapTypeId()].maxZoom);
|
769
|
-
zoom = Math.min(Math.max(zoom,minZoom),maxZoom);
|
774
|
+
zoom = Math.min(Math.max(zoom, minZoom), maxZoom);
|
770
775
|
|
771
776
|
if (this.prevZoom_ != zoom) {
|
772
777
|
this.prevZoom_ = zoom;
|
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.9
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- RogerE
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-03-
|
11
|
+
date: 2018-03-16 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: This gem provides the MarkerClustererPlus assets for your Rails application.
|
14
14
|
email:
|