sgpena / 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 #303

Closed GoogleCodeExporter closed 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

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