Skip to main content

Create collaborative maps on top of Geodjango and Leaflet.

Project description

[![Build Status](https://travis-ci.org/umap-project/django-leaflet-storage.svg)](https://travis-ci.org/umap-project/django-leaflet-storage)
[![Requirements Status](https://requires.io/github/umap-project/django-leaflet-storage/requirements.svg?branch=master)](https://requires.io/github/umap-project/django-leaflet-storage/requirements/?branch=master)

# Django-Leaflet-Storage

Provide collaborative maps for your Django project.

Django-Leaflet-Storage is a backend for [Leaflet.Storage](https://github.com/yohanboniface/Leaflet.Storage), built on top of [Geodjango](http://geodjango.org/) and [Leaflet](http://leafletjs.com).

Check the demo [here](http://umap.fluv.io)


## Installation

You will need a geo aware database. See [Geodjango doc](https://docs.djangoproject.com/en/dev/ref/contrib/gis/install/) for backend installation.

Then you can pip install the app:

pip install django-leaflet-storage


Add `leaflet_storage` to you apps:

INSTALLED_APPS = (
...
"leaflet_storage",
)

Include `leaflet_storage` urls:

(r'', include('leaflet_storage.urls')),

Create tables:

python manage.py migrate


## Basic usage

>From the Django admin (for now), you need to create at least:

- one TileLayer instance
- one Licence instance

Then, go to the map creation page (something like http://localhost:8017/map/new), and you will be able to add features (Marker, Polygon...).

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

django-leaflet-storage-0.8.0b0.tar.gz (523.5 kB view details)

Uploaded Source

Built Distribution

django_leaflet_storage-0.8.0b0-py3-none-any.whl (667.6 kB view details)

Uploaded Python 3

File details

Details for the file django-leaflet-storage-0.8.0b0.tar.gz.

File metadata

File hashes

Hashes for django-leaflet-storage-0.8.0b0.tar.gz
Algorithm Hash digest
SHA256 ff4769bbf2b8ec94a0a5609f902b5b1cf39eabc7ff96d1049037d8dd97aa7c45
MD5 da7077568e21df49c32d62035e834a7b
BLAKE2b-256 0ae146500e180f0fc70bd71e10bb813808b07438211caa05b9a1e02aadd391f9

See more details on using hashes here.

File details

Details for the file django_leaflet_storage-0.8.0b0-py3-none-any.whl.

File metadata

File hashes

Hashes for django_leaflet_storage-0.8.0b0-py3-none-any.whl
Algorithm Hash digest
SHA256 7a2ebcf452da989f5a56a15800b4f62d136066901564defc61d29f24fc3b2d1f
MD5 261110ba80096cf57447ef79938b9078
BLAKE2b-256 d53d106bdc214725eb6c553d713aa4f10d687b0bca98d9869063e1bdbeeb1dae

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page