display space transfer nodes in other colors
This commit is contained in:
parent
2dc26aa1b4
commit
bd1b747a91
3 changed files with 11 additions and 1 deletions
|
@ -19,6 +19,12 @@ class GraphNode(SpaceGeometryMixin, models.Model):
|
|||
verbose_name_plural = _('Graph Nodes')
|
||||
default_related_name = 'graphnodes'
|
||||
|
||||
def get_geojson_properties(self, *args, **kwargs) -> dict:
|
||||
result = super().get_geojson_properties(*args, **kwargs)
|
||||
if self.space_transfer:
|
||||
result['space_transfer'] = True
|
||||
return result
|
||||
|
||||
|
||||
class WayType(TitledMixin, models.Model):
|
||||
"""
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue