Suchinthana commited on
Commit
a2786fb
·
1 Parent(s): 36ee1b6

cord update

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -124,7 +124,7 @@ def generate_static_map(geojson_data, invisible=False):
124
  coords = feature["geometry"]["coordinates"]
125
 
126
  if geom_type == "Point":
127
- m.add_marker(CircleMarker((coords[0], coords[1]), '#1C00ff00' if invisible == True else 'blue', 1000))
128
  elif geom_type in ["MultiPoint", "LineString"]:
129
  for coord in coords:
130
  m.add_marker(CircleMarker((coord[0], coord[1]), '#1C00ff00' if invisible == True else 'blue', 1000))
 
124
  coords = feature["geometry"]["coordinates"]
125
 
126
  if geom_type == "Point":
127
+ m.add_marker(CircleMarker((coords[0][0], coords[0][1]), '#1C00ff00' if invisible == True else 'blue', 1000))
128
  elif geom_type in ["MultiPoint", "LineString"]:
129
  for coord in coords:
130
  m.add_marker(CircleMarker((coord[0], coord[1]), '#1C00ff00' if invisible == True else 'blue', 1000))