Go to file
2012-10-26 11:56:51 +03:00
_layouts rename leaflet.cloudmade.com -> leafletjs.com 2012-10-26 11:56:51 +03:00
_posts update blogpost 2012-10-25 15:44:59 +03:00
build get rid of the legacy L.Transition, replace with a better and simpler L.PosAnimation 2012-08-10 18:43:46 +03:00
debug Merge branch 'master' into gh-pages 2012-09-11 15:29:18 +03:00
dist update build and changelog 2012-09-11 15:28:28 +03:00
docs update "used by" block on frontpage 2012-10-17 19:05:24 +03:00
examples fix choropleth example in Opera more 2012-08-08 14:23:19 +03:00
spec Implemented isValid() function for Bounds and LatLngBounds. Fixes issue #966. Added specification. 2012-09-11 12:43:16 +01:00
src Merge pull request #972 from domoritz/master 2012-09-11 05:14:26 -07:00
_config.yml more files to ignore by Jekyll 2012-07-19 11:12:10 +03:00
.gitignore merge master 2012-08-07 12:32:52 +03:00
atom.xml rename leaflet.cloudmade.com -> leafletjs.com 2012-10-26 11:56:51 +03:00
blog.md final polishing 2012-07-30 11:17:10 +03:00
CHANGELOG.md update build and changelog 2012-09-11 15:28:28 +03:00
CNAME update CNAME with leafletjs.com 2012-10-26 11:37:06 +03:00
download.md fix link on download page to 0.4.5 2012-10-26 10:04:22 +03:00
examples.md add 0.4.3 blog post, minor tutorials update 2012-08-07 18:09:59 +03:00
features.html update features 2012-07-27 18:34:24 +03:00
index.md Update blog post notice 2012-10-26 10:08:35 +03:00
Jakefile.js cleanup Jakefile 2012-07-12 10:39:22 +03:00
LICENSE fix license whitespace 2011-06-17 01:36:31 +03:00
plugins.md add leaflet-locationfilter plugin 2012-10-17 19:11:17 +03:00
README.md update readme regarding docs and jekyll 2012-07-18 17:31:24 +03:00
reference-tpl.html update docs snippets 2012-07-19 11:39:36 +03:00
reference.html Fix eachLayer typo. 2012-10-08 13:56:02 +13:00

Leaflet

Leaflet is a modern, lightweight open-source JavaScript library for mobile-friendly interactive maps, developed by Vladimir Agafonkin of CloudMade with a team of dedicated contributors. Weighting just about 25kb of gzipped JS code, it still has all the features most developers ever need for online maps, while providing a fast, pleasant user experience.

It is built from the ground up to work efficiently and smoothly on both desktop and mobile platforms like iOS and Android, taking advantage of HTML5 and CSS3 on modern browsers. The focus is on usability, performance, small size, A-grade browser support, flexibility and easy to use API with convention over configuration. 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 Website (Docs)

  1. Install Ruby if don't have it yet
  2. Run gem install jekyll
  3. Run jekyll --auto inside the Leaflet folder
  4. Open the website from the _site folder

Now any file changes will be reflected on the generated pages automatically.

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 (preferably in a separate branch), make sure that Leaflet builds successfully (see below) and then create a pull request (without the built files, just the source changes) to Vladimir Agafonkin (Leaflet maintainer). Updates to Leaflet documentation and examples (located in the gh-pages branch for current stable release and gh-pages-master for the in-progress version) are really appreciated too.

Note that bugfixes and small improvements are higher priority than new features or substantial API changes, and will be reviewed and merged much faster than pulls with lots of new code. If your new feature is not expected to be widely used, consider making a plugin instead. Lets keep Leaflet slim, fast and simple!

Here's a list of the awesome people that joined us already. Looking forward to your contributions!

Building Leaflet

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:

  1. Download and install Node
  2. 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 jake inside the Leaflet directory. This will check Leaflet source files for JavaScript errors and inconsistencies, and then combine and compress it to the dist folder.

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!