From 34930e7262e9aa5d826b371a7b4730a1da2030f9 Mon Sep 17 00:00:00 2001 From: Étienne Loks Date: Sun, 15 May 2016 19:09:17 +0200 Subject: Zoom to the current area on edition --- chimere/models.py | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'chimere/models.py') diff --git a/chimere/models.py b/chimere/models.py index 8dacdb7..cc90d63 100644 --- a/chimere/models.py +++ b/chimere/models.py @@ -1575,6 +1575,12 @@ class SimpleArea: return subcats + def getExtent(self): + return (unicode(self.upper_left_corner.x), + unicode(self.upper_left_corner.y), + unicode(self.lower_right_corner.x), + unicode(self.lower_right_corner.y)) + class Layer(models.Model): name = models.CharField(_(u"Name"), max_length=150) -- cgit v1.2.3