editor: fly to relevant areas
This commit is contained in:
parent
44cacd24b5
commit
e8099850c4
3 changed files with 18 additions and 2 deletions
|
@ -18,10 +18,13 @@ class GeometryMixin(EditorFormMixin):
|
|||
abstract = True
|
||||
|
||||
def get_geojson_properties(self) -> dict:
|
||||
return OrderedDict((
|
||||
result = OrderedDict((
|
||||
('type', self.__class__.__name__.lower()),
|
||||
('id', self.id),
|
||||
))
|
||||
if getattr(self, 'bounds', False):
|
||||
result['bounds'] = True
|
||||
return result
|
||||
|
||||
def to_geojson(self) -> dict:
|
||||
return OrderedDict((
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue