removeLayer
Searches for a layer with the given name, and removes it.
Parameters:
name(string): the name of the layer to search for
Returns: Nothing
Throws: Error in the console if a layer is not found with a name that matches layerName.
Code Sample