Commit 2304a8fc authored by Yohan Boniface's avatar Yohan Boniface

Make possible to override default zoom

parent 0ceb5fed
......@@ -12,6 +12,7 @@
- added russian locale
- http optimistic concurrency control
- longer anonymous cookie max_age (one month instead of session only)
- add possibility to override default zoom with LEAFLET_ZOOM setting
## 0.5.x
- internal storage structure totally reviewed: datalayers are stored as geojson files,
......
"Create collaborative maps on top of Geodjango and Leaflet."
VERSION = (0, 6, 13)
VERSION = (0, 6, 14)
__author__ = 'Yohan Boniface'
__contact__ = "yb@enix.fr"
......
......@@ -143,6 +143,9 @@ class MapDetailMixin(object):
"geometry": {
"coordinates": [DEFAULT_LONGITUDE, DEFAULT_LATITUDE],
"type": "Point"
},
"properties": {
"zoom": getattr(settings, 'LEAFLET_ZOOM', 6)
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment