Announcement: All noncommercial projects registered to use Earth Engine before
April 15, 2025 must
verify noncommercial eligibility to maintain Earth Engine access.
ui.Map.Layer.getVisParams
Stay organized with collections
Save and categorize content based on your preferences.
Returns the layer's visualization parameters.
Usage | Returns | Layer.getVisParams() | FeatureVisualizationParameters|ImageVisualizationParameters |
Argument | Type | Details | this: ui.map.layer | ui.Map.Layer | The ui.Map.Layer instance. |
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."],[[["\u003cp\u003eThis function returns the visualization parameters of a specified map layer.\u003c/p\u003e\n"],["\u003cp\u003eThe returned parameters will either be FeatureVisualizationParameters or ImageVisualizationParameters, depending on the layer type.\u003c/p\u003e\n"],["\u003cp\u003eIt is called on a ui.Map.Layer object using the \u003ccode\u003egetVisParams()\u003c/code\u003e method.\u003c/p\u003e\n"]]],["The `Layer.getVisParams()` method retrieves the visualization parameters of a layer. It returns either `FeatureVisualizationParameters` or `ImageVisualizationParameters`, depending on the layer type. The method is called on a `ui.Map.Layer` instance, which represents a layer on a map. It requires no arguments other than the layer object. The `ui.Map.Layer` object is passed using `this`.\n"],null,["# ui.Map.Layer.getVisParams\n\n\u003cbr /\u003e\n\nReturns the layer's visualization parameters.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|------------------------|--------------------------------------------------------------|\n| Layer.getVisParams`()` | FeatureVisualizationParameters\\|ImageVisualizationParameters |\n\n| Argument | Type | Details |\n|----------------------|--------------|----------------------------|\n| this: `ui.map.layer` | ui.Map.Layer | The ui.Map.Layer instance. |"]]