Skip to content

davidjb/js.leaflet

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

js.leaflet

Introduction

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.

Packaging

https://travis-ci.org/davidjb/js.leaflet.png?branch=master

The packaging is stored on GitHub at https://github.com/davidjb/js.leaflet. 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.

Development of 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
python boostrap.py
./bin/buildout

Running tests

After running the Buildout within this package, do this:

./bin/tox

...and watch the magic unfold.

Updating this package

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

LEAFLET_VERSION=1.0.0-beta.2
pushd js/leaflet/resources
wget http://cdn.leafletjs.com/leaflet/v$LEAFLET_VERSION/leaflet.zip
#Overwrites older files with new ones
unzip -o leaflet.zip
rm leaflet.zip
popd
#Edit changelog, setup.py for versions, etc here
./bin/fanstatic-compile -v js
git add js
git commit -a -m "Updated for release $LEAFLET_VERSION"
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.