Update frappe/geo/utils.py
Co-authored-by: Prssanna Desai <prssud@gmail.com>
This commit is contained in:
parent
a086923469
commit
90875ef21c
1 changed files with 2 additions and 0 deletions
|
|
@ -40,6 +40,8 @@ def merge_location_features_in_one(coords):
|
|||
geojson_dict = []
|
||||
for element in coords:
|
||||
geojson_loc = frappe.parse_json(element['location'])
|
||||
if not geojson_loc:
|
||||
continue
|
||||
for coord in geojson_loc['features']:
|
||||
coord['properties']['name'] = element['name']
|
||||
geojson_dict.append(coord.copy())
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue