Earth Engine is introducing
noncommercial quota tiers to safeguard shared compute resources and ensure reliable performance for everyone. All noncommercial projects will need to select a quota tier by
April 27, 2026 or will use the Community Tier by default. Tier quotas will take effect for all projects (regardless of tier selection date) on
April 27, 2026.
Learn more.
ee.ImageCollection.getMapId
Stay organized with collections
Save and categorize content based on your preferences.
An imperative function that returns a map ID via a synchronous AJAX call.
This mosaics the collection to a single image and return a map ID suitable for building a Google Maps overlay.
Returns returns a map ID and optional token, which may be passed to ee.data.getTileUrl or ui.Map.addLayer. Undefined if a callback was specified.
| Usage | Returns | ImageCollection.getMapId(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-12-06 UTC.
[null,null,["Last updated 2023-12-06 UTC."],[],["This document details the `getMapId` function for ImageCollection, which returns a map ID for creating Google Maps overlays. It mosaics an ImageCollection into a single image. The function can be called synchronously or asynchronously using an optional callback. It accepts visualization parameters (`visParams`) and returns a MapId or an object containing the map ID and token, which can be used with `ee.data.getTileUrl` or `ui.Map.addLayer`. The return will be `undefined` if a callback is specified.\n"]]