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 773 forks source link

Add cssClass option to override any styles in css #43

Closed kesha-antonov closed 7 years ago

kesha-antonov commented 8 years ago

You can pass cssClass option to add class to each clusterer and override any of properties in css with !important. In js:

new MarkerClusterer(map, markers, {cssClass: 'my-clusterer'})

In css:

.my-clusterer {
  font-size: 40px !important
}
XmlmXmlmX commented 8 years ago

Same pull #24