Announcement: All noncommercial projects registered to use Earth Engine before
April 15, 2025 must
verify noncommercial eligibility to maintain Earth Engine access.
ee.List.map
Stay organized with collections
Save and categorize content based on your preferences.
Map an algorithm over a list. The algorithm is expected to take an Object and return an Object.
Usage | Returns | List.map(baseAlgorithm, dropNulls) | List |
Argument | Type | Details | this: list | List | |
baseAlgorithm | Algorithm | |
dropNulls | Boolean, default: false | If true, the mapped algorithm is allowed to return nulls, and the elements for which it returns nulls will be dropped. |
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 2024-06-05 UTC.
[null,null,["Last updated 2024-06-05 UTC."],[[["\u003cp\u003e\u003ccode\u003eList.map()\u003c/code\u003e applies a given algorithm to each element of a list, transforming the original list into a new one with the results.\u003c/p\u003e\n"],["\u003cp\u003eThe provided \u003ccode\u003ebaseAlgorithm\u003c/code\u003e should accept an object as input and return a modified object as output.\u003c/p\u003e\n"],["\u003cp\u003eBy enabling the optional \u003ccode\u003edropNulls\u003c/code\u003e parameter, you can filter out elements from the resulting list where the algorithm returns null.\u003c/p\u003e\n"]]],[],null,["# ee.List.map\n\nMap an algorithm over a list. The algorithm is expected to take an Object and return an Object.\n\n\u003cbr /\u003e\n\n| Usage | Returns |\n|------------------------------------------|---------|\n| List.map`(baseAlgorithm, `*dropNulls*`)` | List |\n\n| Argument | Type | Details |\n|-----------------|-------------------------|------------------------------------------------------------------------------------------------------------------------|\n| this: `list` | List | |\n| `baseAlgorithm` | Algorithm | |\n| `dropNulls` | Boolean, default: false | If true, the mapped algorithm is allowed to return nulls, and the elements for which it returns nulls will be dropped. |"]]