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.
ee.ImageCollection.getMap
Stay organized with collections
Save and categorize content based on your preferences.
An imperative function that returns a mapid via a synchronous AJAX call.
This mosaics the collection to a single image and return a mapid suitable for building a Google Maps overlay.
Returns returns a mapid and optional token, which may be passed to ee.data.getTileUrl or ui.Map.addLayer. Undefined if a callback was specified.
| Usage | Returns | ImageCollection.getMap(visParams, callback) | MapId|Object |
| Argument | Type | Details | this: imagecollection | ImageCollection | The ImageCollection instance. |
visParams | Object, optional | The visualization parameters. |
callback | Function, optional | An async callback. If not supplied, the call is made synchronously. |
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."],[],["This imperative function, applied to an `ImageCollection`, generates a map ID (mapid) suitable for Google Maps overlays. It mosaics the collection into a single image and returns the mapid, potentially with a token, for use with `ee.data.getTileUrl` or `ui.Map.addLayer`. The function accepts optional visualization parameters (`visParams`) and an optional callback for asynchronous execution; if no callback is provided, the call is synchronous. The function return type can be a `MapId` or an `Object`.\n"]]