Update map_handler.py
Browse files- map_handler.py +3 -3
map_handler.py
CHANGED
@@ -32,6 +32,6 @@ class MapHandler:
|
|
32 |
|
33 |
def clear_markers(self, map_object):
|
34 |
"""Clear all markers from the map."""
|
35 |
-
for
|
36 |
-
if
|
37 |
-
map_object.
|
|
|
32 |
|
33 |
def clear_markers(self, map_object):
|
34 |
"""Clear all markers from the map."""
|
35 |
+
for name in list(map_object._children.keys()):
|
36 |
+
if name.startswith('marker_'):
|
37 |
+
del map_object._children[name]
|