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;');