Skip to content
This repository has been archived by the owner on Jun 16, 2019. It is now read-only.

Display marker image full width despite label offset #104

Open
wants to merge 1 commit into
base: gh-pages
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions CONTRIBUTORS
Original file line number Diff line number Diff line change
Expand Up @@ -14,3 +14,4 @@ Brendan Kenny <[email protected]>
Moisés Arcos <[email protected]>
Peter Grassberger <[email protected]>
Chris Fritz <[email protected]>
Joseph Boiteau <[email protected]>
2 changes: 1 addition & 1 deletion src/markerclusterer.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;');
Expand Down