diff --git a/src/markerclusterer.js b/src/markerclusterer.js index a31e3a9..3b727b5 100755 --- a/src/markerclusterer.js +++ b/src/markerclusterer.js @@ -1,6 +1,6 @@ // ==ClosureCompiler== // @compilation_level ADVANCED_OPTIMIZATIONS -// @externs_url http://closure-compiler.googlecode.com/svn/trunk/contrib/externs/maps/google_maps_api_v3_3.js +// @externs_url https://raw.githubusercontent.com/google/closure-compiler/master/contrib/externs/maps/google_maps_api_v3.js // ==/ClosureCompiler== /** @@ -1216,7 +1216,9 @@ ClusterIcon.prototype.createCss = function(pos) { var style = []; style.push('background-image:url(' + this.url_ + ');'); var backgroundPosition = this.backgroundPosition_ ? this.backgroundPosition_ : '0 0'; + var backgroundSize = this.width_ > this.height_ ? this.width_ : this.height_; style.push('background-position:' + backgroundPosition + ';'); + style.push('background-size:' + backgroundSize + 'px;'); if (typeof this.anchor_ === 'object') { if (typeof this.anchor_[0] === 'number' && this.anchor_[0] > 0 &&