From 68d3b81aa88dd37359dce30eb34c4c05a4717ff2 Mon Sep 17 00:00:00 2001
From: Vladimir Agafonkin
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://code.leafletjs.com/leaflet-0.3.1/leaflet.css" />
-<!--[if lte IE 8]>
- <link rel="stylesheet" href="http://code.leafletjs.com/leaflet-0.3.1/leaflet.ie.css" />
-<![endif]-->
-
-<script src="http://code.leafletjs.com/leaflet-0.3.1/leaflet.js"></script>
-
-
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.
After downloading Leaflet and extracting the contents of the `dist` folder somewhere in your project directory, place this code in the head
section of your HTML:
<link rel="stylesheet" href="[path-to-dist]/leaflet.css" />
+<!--[if lte IE 8]>
+ <link rel="stylesheet" href="[path-to-dist]/leaflet.ie.css" />
+<![endif]-->
+
+<script src="[path-to-dist]/leaflet.js"></script>
+
Open build/build.html
page from the download package, check the components you want to see in your build and then follow the instructions there.