No. Demo?
When it does support sprites you may follow the docs, when it doesn't
you may implement it yourself by changing the code.
FYI. There is an alternative to sprites - just as good as sprites.
It's called a Data URI
http://www.nczonline.net/blog/2010/07/06/data-uris-make-css-sprites-obsolete/
On Nov 30, 12:04 pm, Daniel <daniel.hall...@svd.se> wrote:
> backgroundPosition: "-5 -184"
BTW. This seems to be invalid css anyway.
Try to start here
backgroundPosition
string
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"."--
You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group.
To post to this group, send email to google-map...@googlegroups.com.
To unsubscribe from this group, send email to google-maps-js-a...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
If you provide a link to the patient and maybe an extra link to the
sprite image the chance to get help is much higher.
ClusterIcon.prototype.createCss = function (pos) {
var style = [];
if (!this.cluster_.printable_) {
style.push('background-image:url(' + this.url_ + ');');
>> style.push('background-size:' + this.width_ + 'px ' + this.height_ + 'px;'); //For iPhone retina display
style.push('background-position:' + this.backgroundPosition_ +
';');
}
The code styles the background size equal to the icon size, so if
you're using a sprite the result is the entire sprite image shrunk
down to the icon size. I'm not targeting iPhone and I'm using a local
copy of markerclusterer so I just commented out the line, and the
sprite appears correctly.
- Adam