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

adding margin top option #14

Open aFrontendDev opened 9 years ago

aFrontendDev commented 9 years ago

I'd like to be able to set a margin top in the style options, small change but one which I've now used on two different projects.

Example usage: var clusterGroup = new MarkerClusterer($googleMap, markers, { gridSize: 40, styles: [{ url: '/images/_temp/map-pin-a.png', height: 59, width: 30, textColor: '#000', textSize: 16, marginTop: -15 }] });

Thanks

XmlmXmlmX commented 8 years ago

This pull would be obsolete when this pull was merged.

aFrontendDev commented 8 years ago

You're absolutely right, adding a css class would also be much better. Thanks

On Tuesday, 15 September 2015, Sebastian notifications@github.com wrote:

This pull would be obsolete when this https://github.com/googlemaps/js-marker-clusterer/pull/24 pull was merged.

— Reply to this email directly or view it on GitHub https://github.com/googlemaps/js-marker-clusterer/pull/14#issuecomment-140324077 .