Announcement: All noncommercial projects registered to use Earth Engine before 
April 15, 2025 must 
verify noncommercial eligibility to maintain access. If you have not verified by September 26, 2025, your access may be on hold.
        
 
       
     
  
  
  
  
  
    
      ui.Map.Layer.setVisParams
    
    
      
    
    
      
      Stay organized with collections
    
    
      
      Save and categorize content based on your preferences.
    
  
  
      
    
  
  
  
  
  
    
  
  
    
    
  
  
Sets the layer's visualization parameters.
Returns this map layer.
| Usage | Returns | | Layer.setVisParams(visParams) | ui.Map.Layer | 
| Argument | Type | Details | | this: ui.map.layer | ui.Map.Layer | The ui.Map.Layer instance. | 
| visParams | FeatureVisualizationParameters|ImageVisualizationParameters, optional | The visualization parameters. See ee.data.getMapId() docs. | 
  
  
  
  
 
  
    
    
      
       
    
    
  
  
  Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 4.0 License, and code samples are licensed under the Apache 2.0 License. For details, see the Google Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.
  Last updated 2023-10-06 UTC.
  
  
  
    
      [null,null,["Last updated 2023-10-06 UTC."],[],["The `setVisParams` method configures a map layer's visualization. It accepts `visParams` which can be either `FeatureVisualizationParameters` or `ImageVisualizationParameters` as defined in `ee.data.getMapId()`. The method modifies the `ui.Map.Layer` instance, which is the target of this operation, and returns the same `ui.Map.Layer` instance. This function is used to update how the layer is displayed.\n"]]