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, including an additional 'image' field, containing a Collection.draw image wrapping a FeatureCollection containing this feature. Undefined if a callback was specified.

Feature.getMap(visParams, callback)MapId|Object
this: featureFeature

The Feature instance.

visParamsObject, optional

The visualization parameters. Currently only one parameter, 'color', containing an RGB color string is user. If vis_params is null, black ("000000") is used.

callbackFunction, optional

An async callback.