remove levels/svg api endpoint as this no longer works

This commit is contained in:
Laura Klünder 2017-11-29 10:52:25 +01:00
parent c71b9b0f8b
commit 8f3fd001fe

View file

@ -166,13 +166,6 @@ class LevelViewSet(MapdataViewSet):
def geometrytypes(self, request):
return self.list_types(get_submodels(LevelGeometryMixin))
@detail_route(methods=['get'])
@api_etag()
def svg(self, request, pk=None):
level = self.get_object()
response = HttpResponse(level.render_svg(request), 'image/svg+xml')
return response
class BuildingViewSet(MapdataViewSet):
""" Add ?geometry=1 to get geometries, add ?level=<id> to filter by level. """