cybersthang / gmaps-utility-library-dev

Automatically exported from code.google.com/p/gmaps-utility-library-dev
0 stars 0 forks source link

MarkerCluster does not support image sprites #209

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
It would be nice if MarkerCluster was capable of writing the image style with a 
top and left value, when defined.  This will allow us to use image sprites.

MarkerStyleOption will need a left and top value that can default to 0 or null 
and be handled appropriately in ClusterMarker_.prototype.createCss().

Original issue reported on code.google.com by patrick....@macefusion.com on 4 Apr 2011 at 8:34

GoogleCodeExporter commented 8 years ago
This should be possible in both MarkerClusterer and MarkerClustererPlus. 

In MarkerClustererPlus check out the documentation for the backgroundPosition 
property in the ClusterIconStyle array:

The position of the cluster icon image within the image defined by url. The 
format is "xpos ypos" (the same format as for the CSS background-position 
property). You must set this property appropriately when the image defined by 
url represents a sprite containing multiple images. The default value is "0 0".

Original comment by garylitt...@gmail.com on 19 Apr 2012 at 3:08

GoogleCodeExporter commented 8 years ago
That must be referring to the v3 version cause there is no MarkerClustererPlus 
for v2, which this tracker is for.

Thanks for the heads up though, I did not realize it was implemented in v3. :)

Original comment by patrick....@macefusion.com on 19 Apr 2012 at 3:17