ee.ImageCollection.getMap

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.

UsageReturns
ImageCollection.getMap(visParams, callback)MapId|Object
ArgumentTypeDetails
this: imagecollectionImageCollection

The ImageCollection instance.

visParamsObject, optional

The visualization parameters.

callbackFunction, optional

An async callback. If not supplied, the call is made synchronously.

Examples

JavaScript

// Your example goes here!

Python

# Your example goes here!