show graph nodes in space geometries

This commit is contained in:
Laura Klünder 2017-07-26 13:52:12 +02:00
parent 20e22ac075
commit ef7af700dc

View file

@ -149,6 +149,7 @@ class EditorViewSet(ViewSet):
space.lineobstacles.all(),
space.columns.all(),
space.pois.filter(POI.q_for_request(request)).prefetch_related('groups'),
space.graphnodes.all(),
other_spaces_upper,
)
return Response(sum([self._get_geojsons(obj) for obj in results], ()))
@ -174,6 +175,7 @@ class EditorViewSet(ViewSet):
'column': '#888888',
'poi': '#4488cc',
'shadow': '#000000',
'graphnode': '#00bb00',
})
@list_route(methods=['get'])