Skip to main content

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=0.6.3
pushd js/leaflet/resources
wget http://leaflet-cdn.s3.amazonaws.com/build/leaflet-$LEAFLET_VERSION.zip -O 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.

Usage

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()

CHANGES

0.7.1 (2014-01-06)

  • Upgraded Leaflet to v0.7.1. [davidjb]

0.6.3 (2013-07-18)

  • Upgraded Leaflet to v0.6.3. [davidjb]

0.6.2 (2013-07-03)

  • Upgraded Leaflet to v0.6.2. [davidjb]

  • Use Fanstatic for minification of CSS. This library now requires Fanstatic 1.0a or above. [davidjb]

  • Fix typo in library name. [davidjb]

  • Add tox and Travis CI support. [davidjb]

0.5 (2013-02-04)

  • Upgraded Leaflet to v0.5. [davidjb]

0.4.5 (2013-01-07)

  • Initial release.

Metadata

Release files for js.leaflet 0.7.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for js.leaflet 0.7.1
File Size Uploaded Provenance
js.leaflet-0.7.1.zip 124.8 kB Without provenance Details

Release files / js.leaflet-0.7.1.zip

Download URL js.leaflet-0.7.1.zip
Size 124.8 kB
Tags Source
SHA-256 checksum
How to use checksums
2d4a69b4b18479364092e519f8f5defbf1b05520745603e14428b1dac85bc7f9
BLAKE2b-256 checksum
How to use checksums
e7d58b2538f1cd7407eee495dce07fc229f38863c1d98641d33c9fc3fd4e9877
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Security for js.leaflet 0.7.1

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page