geemap/geemap.py
def remove_legends(self):
        """Remove all legends from the map."""
        if hasattr(self, "legends"):
            for legend in self.legends:
                if legend in self.controls:
                    self.remove_control(legend)
Remove all legends from the map.
Remove all legends from the map.
Remove all legends from the map .
def remove_legends(self):
        if hasattr(self, "legends"):
            for legend in self.legends:
                if legend in self.controls:
                    self.remove_control(legend)
def remove_legends ( self ) : if hasattr ( self , "legends" ) : for legend in self . legends : if legend in self . controls : self . remove_control ( legend )
Remove all legends from the map.
Remove all legends from the map .
"""Remove all legends from the map."""
self