googlearchive / js-marker-clusterer

A marker clustering library for the Google Maps JavaScript API v3.
https://googlemaps.github.io/js-marker-clusterer/docs/reference.html
Apache License 2.0
1.28k stars 775 forks source link

Icon anchor and negative Y offset for label #8

Closed Kukkimonsuta closed 8 years ago

Kukkimonsuta commented 9 years ago

This change adds option to define position of icon anchor, so that "pin" icons can be pinned directly to the desired location and not hover over it in the center of the icon.

With this change also comes change to the "anchor" style property, that now accepts negative offset for it's vertical axis moving the text up by reducing line height by given number.

See "pin" cluster style at http://kukkimonsuta.github.io/js-marker-clusterer/examples/advanced_example.html

googlebot commented 9 years ago

Thanks for your pull request.

It looks like this may be your first contribution to a Google open source project, in which case you'll need to sign a Contributor License Agreement (CLA) at https://cla.developers.google.com/.

If you've already signed a CLA, it's possible we don't have your GitHub username or you're using a different email address. Check the information on your CLA or see this help article on setting the email on your git commits.

Once you've done that, please reply here to let us know. If you signed the CLA as a corporation, please let us know the company's name.

Kukkimonsuta commented 9 years ago

Individual CLA signed.

googlebot commented 9 years ago

CLAs look good, thanks!