Engine wrapper for the Leaflet MarkerCluster library by @danzel.
Updated by @KRaikk to work with newer versions of Leaflet (> 1.0.0) and Leaflet.MarkerCluster (> 1.0.0) and Rails (> 5.0).
https://github.com/Leaflet/Leaflet.markercluster
Add this line to your application's Gemfile:
gem 'leaflet-markercluster-rails', git: 'git://github.com/KRaikk/leaflet-markercluster-rails.git'
And then execute:
$ bundle
Or install it yourself as:
$ gem install leaflet-markercluster-rails
Provides the following assets:
leaflet.markercluster.js
leaflet.markercluster.css
leaflet.markercluster.default.css
To use these in a Rails app, add the following to application.css
*= require leaflet.markercluster
*= require leaflet.markercluster.default
and add the following to application.js
//= require leaflet.markercluster
You should require leaflet.markercluster after requiring the leaflet library itself. See https://github.com/axyjo/leaflet-rails.
MIT License, full text of license see here