No commit activity in last 3 years
No release in over 3 years
Cluster markers to improve performance of leaflet rendering with large sets.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

>= 3.1
 Project Readme

Consider using rails-assets instead of this: https://rails-assets.org/#/components/leaflet.markercluster

Leaflet.MarkerCluster for Rails

Engine wrapper for the Leaflet MarkerCluster library by @danzel.

Requires Leaflet 0.7.0 or newer.

https://github.com/Leaflet/Leaflet.markercluster

Installation

Add this line to your application's Gemfile:

gem 'leaflet-markercluster-rails'

And then execute:

$ bundle

Or install it yourself as:

$ gem install leaflet-markercluster-rails

Usage

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 or application.css.scss

//= 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.

License

MIT License, full text of license see here