From 5ec893ecabe71f978491115d9b405469a25ae14c Mon Sep 17 00:00:00 2001 From: grumpydev22 Date: Thu, 2 Jul 2015 22:12:54 +0100 Subject: [PATCH] adding margin top option --- src/markerclusterer.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/markerclusterer.js b/src/markerclusterer.js index 445cd1b..261a754 100755 --- a/src/markerclusterer.js +++ b/src/markerclusterer.js @@ -1231,10 +1231,11 @@ ClusterIcon.prototype.createCss = function(pos) { var txtColor = this.textColor_ ? this.textColor_ : 'black'; var txtSize = this.textSize_ ? this.textSize_ : 11; + var marginTop = this.marginTop_ ? this.marginTop_ : 0; style.push('cursor:pointer; top:' + pos.y + 'px; left:' + pos.x + 'px; color:' + txtColor + '; position:absolute; font-size:' + - txtSize + 'px; font-family:Arial,sans-serif; font-weight:bold'); + txtSize + 'px; font-family:Arial,sans-serif; font-weight:bold; margin-top:' + marginTop + 'px;'); return style.join(''); };