You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 25, 2025. It is now read-only.
Retina icons on are rendered with the wrong size (2x).
As you are using MarkerClustererPlus see this fiddle here:
http://jsfiddle.net/Rt28T/2/
This would be a viable fix (from the fiddle, thanks to the author of the
fiddle):
ClusterIcon.prototype.show = function () {
if (this.div_) {
var img = "";
// NOTE: values must be specified in px units
var bp = this.backgroundPosition_.split(" ");
var spriteH = parseInt(bp[0].trim(), 10);
var spriteV = parseInt(bp[1].trim(), 10);
var pos = this.getPosFromLatLng_(this.center_);
this.div_.style.cssText = this.createCss(pos);
img = "";
Original issue reported on code.google.com by [email protected] on 12 Jan 2015 at 8:16