geemap/geemap.py
def remove_ee_layer(self, name):
        """Removes an Earth Engine layer.

        Args:
            name (str): The name of the Earth Engine layer to remove.
        """
        if name in self.ee_layer_dict:
            ee_object = self.ee_layer_dict[name]["ee_object"]
            ee_layer = self.ee_layer_dict[name]["ee_layer"]
            if name in self.ee_raster_layer_names:
                self.ee_raster_layer_names.remove(name)
                self.ee_raster_layers.remove(ee_object)
            elif name in self.ee_vector_layer_names:
                self.ee_vector_layer_names.remove(name)
                self.ee_vector_layers.remove(ee_object)
            self.ee_layers.remove(ee_object)
            self.ee_layer_names.remove(name)
            if ee_layer in self.layers:
                self.remove_layer(ee_layer)
Removes an Earth Engine layer.

        Args:
            name (str): The name of the Earth Engine layer to remove.
        
Removes an Earth Engine layer.
Removes an Earth Engine layer .
def remove_ee_layer(self, name):
        if name in self.ee_layer_dict:
            ee_object = self.ee_layer_dict[name]["ee_object"]
            ee_layer = self.ee_layer_dict[name]["ee_layer"]
            if name in self.ee_raster_layer_names:
                self.ee_raster_layer_names.remove(name)
                self.ee_raster_layers.remove(ee_object)
            elif name in self.ee_vector_layer_names:
                self.ee_vector_layer_names.remove(name)
                self.ee_vector_layers.remove(ee_object)
            self.ee_layers.remove(ee_object)
            self.ee_layer_names.remove(name)
            if ee_layer in self.layers:
                self.remove_layer(ee_layer)
def remove_ee_layer ( self , name ) : if name in self . ee_layer_dict : ee_object = self . ee_layer_dict [ name ] [ "ee_object" ] ee_layer = self . ee_layer_dict [ name ] [ "ee_layer" ] if name in self . ee_raster_layer_names : self . ee_raster_layer_names . remove ( name ) self . ee_raster_layers . remove ( ee_object ) elif name in self . ee_vector_layer_names : self . ee_vector_layer_names . remove ( name ) self . ee_vector_layers . remove ( ee_object ) self . ee_layers . remove ( ee_object ) self . ee_layer_names . remove ( name ) if ee_layer in self . layers : self . remove_layer ( ee_layer )
Removes an Earth Engine layer.
Removes an Earth Engine layer .
"""Removes an Earth Engine layer.

        Args:
            name (str): The name of the Earth Engine layer to remove.
        """
self
name
The name of the Earth Engine layer to remove.
The name of the Earth Engine layer to remove .