editor/overlay multipoint support (might still be a bit broken)

This commit is contained in:
Gwendolyn 2024-12-20 09:54:00 +01:00
parent d231dec726
commit 0df0580f1b
6 changed files with 6026 additions and 5660 deletions

View file

@ -40,7 +40,7 @@ def format_geojson(data, rounded=True):
if coordinates is not None:
if data['type'] == 'Point':
coordinates = tuple(round(i, 2) for i in coordinates)
elif data['type'] == 'LineString':
elif data['type'] == 'LineString' or data['type'] == 'MultiPoint':
coordinates = round_coordinates(coordinates)
elif data['type'] == 'MultiLineString':
coordinates = tuple(round_coordinates(linestring) for linestring in coordinates)