This repository was archived by the owner on Jun 16, 2019. It is now read-only.
font-family and font-weight are static #5
Open
Description
font-family and font-weight from Cluster are static.
See: Line 1237
I added "fontFamily" and "fontWeight" in my Project (like http://google-maps-utility-library-v3.googlecode.com/svn/trunk/markerclustererplus/docs/reference.html#ClusterIconStyle).
My changed code snippets:
var style = this.styles_[index];
this.url_ = style['url'];
this.height_ = style['height'];
this.width_ = style['width'];
this.textColor_ = style['textColor'];
this.anchor_ = style['anchor'];
this.textSize_ = style['textSize'];
this.fontFamily_ = style['fontFamily']; //added
this.fontWeight_ = style['fontWeight']; //added
var txtColor = this.textColor_ ? this.textColor_ : 'black';
var txtSize = this.textSize_ ? this.textSize_ : 11;
var fontFamily = this.fontFamily_ ? this.fontFamily_ : 'Arial,sans-serif'; //added
var fontWeight = this.fontWeight_ ? this.fontWeight_ : 'bold'; //added
style.push('cursor:pointer; top:' + pos.y + 'px; left:' +
pos.x + 'px; color:' + txtColor + '; position:absolute; font-size:' +
txtSize + 'px; font-family:'+fontFamily+'; font-weight:'+fontWeight); //changed
Metadata
Metadata
Assignees
Labels
No labels