editor/overlay multipoint support (might still be a bit broken)
This commit is contained in:
parent
d231dec726
commit
0df0580f1b
6 changed files with 6026 additions and 5660 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue