draw stuffed areas
This commit is contained in:
parent
31160e1141
commit
50a8b19e31
1 changed files with 6 additions and 0 deletions
|
@ -42,6 +42,12 @@ class Area(SpecificLocation, SpaceGeometryMixin, models.Model):
|
|||
result['stuffed'] = self.stuffed
|
||||
return result
|
||||
|
||||
def get_color(self):
|
||||
color = super().get_color()
|
||||
if not color and self.stuffed:
|
||||
color = 'rgba(0, 0, 0, 0.04)'
|
||||
return color
|
||||
|
||||
|
||||
class Stair(SpaceGeometryMixin, models.Model):
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue