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.0rc11.tar.gz (639.3 kB view details)

Uploaded Source

Built Distribution

django_leaflet_storage-0.8.0rc11-py3-none-any.whl (808.4 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for django-leaflet-storage-0.8.0rc11.tar.gz
Algorithm Hash digest
SHA256 4931d54597c7b8a399955b5c00d5d2b0157ac7c6d67a50e61201919b8c337516
MD5 10a0e2aa435c43aafc2acca6764102e2
BLAKE2b-256 e724f5180c447a3c14543884700feaa1efec1f89085d31f47b8a0e8fa75c1bfc

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for django_leaflet_storage-0.8.0rc11-py3-none-any.whl
Algorithm Hash digest
SHA256 47b7d5646224d5822401d818c2dfd60d7acd406b725395b71d8f958b36d4397b
MD5 3f170468acb30004ec06a4c8b874b764
BLAKE2b-256 2e601fa63128721259e10f1a7e73f3f1dacd2dcfe70cb5154ab334e22246727e

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