SpaceGeometryMixin: geojson opacity

This commit is contained in:
Laura Klünder 2017-12-14 22:00:22 +01:00
parent e0a0b1e653
commit b4fe83b453

View file

@ -31,6 +31,8 @@ class SpaceGeometryMixin(GeometryMixin):
color = self.get_color()
if color:
result['color'] = color
if hasattr(self, 'opacity'):
result['opacity'] = self.opacity
return result
@property