show geometries in editor… introducing the editor API
This commit is contained in:
parent
8c4540c656
commit
46dc1627e1
10 changed files with 167 additions and 73 deletions
|
@ -17,6 +17,10 @@ class SectionGeometryMixin(GeometryMixin):
|
|||
def get_geojson_properties(self) -> dict:
|
||||
result = super().get_geojson_properties()
|
||||
result['layer'] = getattr(self, 'level', 'base')
|
||||
if hasattr(self, 'get_color'):
|
||||
color = self.get_color()
|
||||
if color:
|
||||
result['color'] = color
|
||||
return result
|
||||
|
||||
def _serialize(self, section=True, **kwargs):
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue