<br />

An imperative function that returns a map ID via a synchronous AJAX call.

<br />

This mosaics the collection to a single image and returns 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. |