skip to navigation
skip to content

js.leaflet 0.5

Fanstatic packaging of Leaflet

Latest Version: 1.0.0b2



This library packages the Leaflet JavaScript mapping library for fanstatic.

This requires integration between your web framework and fanstatic, and making sure that the original resources (shipped in the resources directory in js.leaflet) are published to some URL. As a bonus, this library also packages up minified versions of the original CSS resources.


The packaging is stored on GitHub at If you happen to come across a bug that corresponds to packaging, then please report it here. Pull requests are more than welcome if you’re fixing something yourself – the more help the better!

Any other bugs that relate to the library itself should be directed to the original developers.

Updating this package

This process requires installation of the package for development - the suggested method to do this is via the Buildout within this package:

cd js.leaflet

For minification of resources to succeed, you require a Java installation as this process uses the YUI Compressor library (via the minify and“yuicompressor“ Python packages).

In order to obtain a newer version of of this library, do the following (substituting the version number for the newer version):

pushd js/leaflet/resources
wget -O leaflet.tgz
#Overwrites older files with new ones
tar vxf leaflet.tgz --wildcards '*/dist' --strip=2
rm leaflet.tgz
#Edit changelog, for versions, etc
python minify_leaflet
git add js
git commit -a -m "Updated for release 0.5"
git push

If you’re doing this out in your own fork of the GitHub repository, then send through a pull request so everyone can benefit from the updated library.


You can import leaflet from js.leaflet and need it where you want these resources to be included on a page:

>>> from js.leaflet import leaflet
>>> leaflet.need()


0.5 (2013-02-04)

  • Upgraded Leaflet to v0.5. [davidjb]

0.4.5 (2013-01-07)

  • Initial release.
File Type Py Version Uploaded on Size (md5) Source 2013-02-04 104KB