From 3f698444f50b2030d7feec21c6f8a60669484bb5 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Mon, 4 Feb 2019 12:46:49 +0100 Subject: Map: manage default extent and zoom to current extent --- ishtar_common/models.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'ishtar_common/models.py') diff --git a/ishtar_common/models.py b/ishtar_common/models.py index 76e415368..ea6bd3bf0 100644 --- a/ishtar_common/models.py +++ b/ishtar_common/models.py @@ -2241,6 +2241,11 @@ class IshtarSiteProfile(models.Model, Cached): default=True) currency = models.CharField(_(u"Currency"), default=u"€", choices=CURRENCY, max_length=5) + default_center = models.PointField( + _(u"Maps - default center"), + default='SRID=4326;POINT(2.4397 46.5528)') + default_zoom = models.IntegerField( + _(u"Maps - default zoom"), default=6) class Meta: verbose_name = _(u"Ishtar site profile") -- cgit v1.2.3