From a9eab71ba557e1563ebe064169e6b0b4a228dd38 Mon Sep 17 00:00:00 2001 From: Joseph Boiteau Date: Mon, 10 Oct 2016 11:52:15 +1100 Subject: [PATCH] Display marker image full width despite label offset I don't understand why this code could be used for originally --- CONTRIBUTORS | 1 + src/markerclusterer.js | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CONTRIBUTORS b/CONTRIBUTORS index aa5a6d9..390655f 100644 --- a/CONTRIBUTORS +++ b/CONTRIBUTORS @@ -14,3 +14,4 @@ Brendan Kenny Moisés Arcos Peter Grassberger Chris Fritz +Joseph Boiteau diff --git a/src/markerclusterer.js b/src/markerclusterer.js index 554fcec..8c67ed7 100755 --- a/src/markerclusterer.js +++ b/src/markerclusterer.js @@ -1244,7 +1244,7 @@ ClusterIcon.prototype.createCss = function(pos) { } if (typeof this.anchor_[1] === 'number' && this.anchor_[1] > 0 && this.anchor_[1] < this.width_) { - style.push('width:' + (this.width_ - this.anchor_[1]) + + style.push('width:' + this.width_ + 'px; padding-left:' + this.anchor_[1] + 'px;'); } else { style.push('width:' + this.width_ + 'px; text-align:center;');