It is built from the ground up to work efficiently and smoothly on both platforms, utilizing cutting-edge technologies included in HTML5. Its top priorities are usability, performance and small size, A-grade browser support, flexibility and easy to use API. The OOP-based code of the library is designed to be modular, extensible and very easy to understand.
Check out the website for more information: leaflet.cloudmade.com
Contributing to Leaflet
Let's make the best open-source library for maps that can possibly exist!
Contributing is simple: make the changes in your fork, make sure that Leaflet builds successfully (see below) and then create a pull request to Vladimir Agafonkin (Leaflet maintainer). Updates to Leaflet documentation and examples (located in the
gh-pages branch) are really appreciated too.
Here's a list of the awesome people that joined us already. Looking forward to your contributions!
Leaflet build system is powered by the Node.js platform and Jake, JSHint and UglifyJS libraries, which install easily and work well across all major platforms. Here are the steps to install it:
- Download and install Node
Run the following commands in the command line:
npm install -g jake npm install jshint npm install uglify-js
Now that you have everything installed, run
To make a custom build of the library with only the things you need, use the build helper (
build/build.html) to choose the components (it figures out dependencies for you) and then run the command generated with it.
If you add any new files to the Leaflet source, make sure to also add them to
build/deps.js so that the build system knows about them. Happy coding!