custom icon for level
This commit is contained in:
parent
79cff599a6
commit
64eaae1c9d
1 changed files with 3 additions and 0 deletions
|
@ -96,3 +96,6 @@ class Level(SpecificLocation, models.Model):
|
|||
def bounds(self):
|
||||
return cascaded_union(tuple(item.geometry.buffer(0)
|
||||
for item in chain(self.altitudeareas.all(), self.buildings.all()))).bounds
|
||||
|
||||
def get_icon(self):
|
||||
return super().get_icon() or 'layers'
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue