project/shved-SCRUM-110-hole-deleting #36
@@ -111,12 +111,7 @@ class MapViewApp(App):
|
||||
return next(flt)
|
||||
|
||||
def set_pothole_marker(self, point):
|
||||
if isinstance(point, dict):
|
||||
lat = point.get("lat")
|
||||
lon = point.get("lon")
|
||||
else:
|
||||
lat, lon = point
|
||||
|
||||
lat, lon = get_lat_lon(point)
|
||||
if lat is None or lon is None:
|
||||
return
|
||||
|
||||
|
||||
Reference in New Issue
Block a user