kkoziol / google-maps-utility-library-v3

Automatically exported from code.google.com/p/google-maps-utility-library-v3
Apache License 2.0
0 stars 0 forks source link

Marker Clusterer Plus - Issue with icon optimized for retina display #302

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Demo link or sample code:
Issue is in all maps and all situations

Expected result:
If i use an icon optimized for retina display, and setting enableRetinaIcons 
option to true, on NOT retina display the icon should be displayed at the 
dimensions that i decided by width and height parameter.

Actual result:
The icon is displayed with its original dimension (doubled).

Version: all

Browser / Operating System:
all

Additional comments:
@line 252

if (!this.cluster_.getMarkerClusterer().enableRetinaIcons_) {
      img += "clip: rect(" + (-1 * spriteV) + "px, " + ((-1 * spriteH) + this.width_) + "px, " +
          ((-1 * spriteV) + this.height_) + "px, " + (-1 * spriteH) + "px);";
    }

Right after this should be added:

else {
        img += "width: " + this.width_ + "px;" + "height: " + this.height_ + "px;";
    }

Original issue reported on code.google.com by alessiod...@gmail.com on 31 Mar 2014 at 1:08

GoogleCodeExporter commented 9 years ago
Experiencing the same problem.  The above solution fixed it for me.

Original comment by reu...@domain7.com on 18 Apr 2014 at 4:08

GoogleCodeExporter commented 9 years ago
Issue 303 has been merged into this issue.

Original comment by brett.mc...@gmail.com on 9 Jun 2014 at 3:26