An imperative function that returns a map id and optional token, suitable for generating a Map overlay.

Returns an object which may be passed to or ui.Map.addLayer. Undefined if a callback was specified.

Image.getMap(visParams, callback)MapId|Object
this: imageImage

The Image instance.

visParamsImageVisualizationParameters, optional

The visualization parameters.

callbackFunction, optional

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