markerclustererplus-rails 2.1 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/app/assets/javascripts/markerclusterer.js.erb +25 -18
- data/lib/markerclustererplus-rails/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2264bd52a4192103452f12366ab7d4572c6cb1a5
|
4
|
+
data.tar.gz: 75132a20476fd00a954ab0883586128390e48e14
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
+
* @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
|
-
|
271
|
-
|
272
|
-
"top: " + this.anchorText_[0] + "px;
|
273
|
-
"left: " + this.anchorText_[1] + "px;
|
274
|
-
"
|
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(
|
330
|
-
style.push(
|
331
|
-
style.push(
|
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
|
1209
|
-
for (
|
1210
|
-
|
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
|
}
|
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:
|
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-
|
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.
|
52
|
+
rubygems_version: 2.1.11
|
53
53
|
signing_key:
|
54
54
|
specification_version: 4
|
55
55
|
summary: Use MarkerClustererPlus with Rails Asset Pipeline
|