2012-07-17 01:21:00 +08:00
|
|
|
---
|
|
|
|
layout: default
|
|
|
|
title: Download
|
|
|
|
---
|
|
|
|
|
|
|
|
### Download Leaflet
|
|
|
|
|
|
|
|
Besides the library itself, the download package contains full source
|
|
|
|
code, unit tests, files for debugging and a build system. The production
|
|
|
|
files (included the same way as in the code above) are in the `dist`
|
|
|
|
folder.
|
|
|
|
|
2012-07-18 21:41:48 +08:00
|
|
|
[Download Leaflet 0.3.1 stable](https://github.com/CloudMade/Leaflet/zipball/v0.3.1) (February 14, 2012)
|
2012-07-17 01:21:00 +08:00
|
|
|
[Download Leaflet 0.4 master](http://github.com/CloudMade/Leaflet/zipball/master) (in-progress version)
|
|
|
|
|
|
|
|
[View Changelog](https://github.com/CloudMade/Leaflet/blob/master/CHANGELOG.md)
|
|
|
|
|
2012-07-18 21:41:48 +08:00
|
|
|
### Using a Hosted Version of Leaflet
|
2012-07-17 01:21:00 +08:00
|
|
|
|
|
|
|
The latest stable release of Leaflet is hosted on a CDN — to start using
|
|
|
|
it straight away, place this code in the `head` section of your HTML:
|
|
|
|
|
|
|
|
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.3.1/leaflet.css" />
|
|
|
|
<!--[if lte IE 8]>
|
|
|
|
<link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.3.1/leaflet.ie.css" />
|
|
|
|
<![endif]-->
|
|
|
|
|
|
|
|
<script src="http://cdn.leafletjs.com/leaflet-0.3.1/leaflet.js"></script>
|
|
|
|
|
2012-07-18 21:41:48 +08:00
|
|
|
### Building a Custom Version of Leaflet
|
2012-07-17 01:21:00 +08:00
|
|
|
|
|
|
|
Open `build/build.html` page from the download package, check the
|
|
|
|
components you want to see in your build and then follow the
|
2012-07-18 21:41:48 +08:00
|
|
|
instructions there.
|