An example application that serves GeoJSON tiles using GeoDjango and renders them in Leaflet
This application demonstrates an example use of
- Serving GeoJSON tiles in Django (using
django-geojson-tiles
) - Rendering GeoJSON tiles in Leaflet (using https://github.com/glenrobertson/leaflet-tilelayer-geojson)
-
Install PostgreSQL with PostGIS, and configure settings.py with your db settings
-
Setup Django app and run
pip install -r requirements.txt python manage.py syncdb python manage.py loaddata shapefiles/usa_state_shapefile.shp gunicorn_django --workers=10
-
Go to http://localhost:8000/
US State shapefiles from: http://geocommons.com/overlays/21424
Code licenced under MIT licence