ee.Feature.getMapId

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 ee.data.getTileUrl 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.

Usage Returns
Feature. getMapId ( visParams , callback ) MapId|Object
Argument Type Details
this: feature
Feature The Feature instance.
visParams
Object, optional The visualization parameters. Currently only one parameter, 'color', containing an RGB color string is allowed. If visParams is not specified, black ("000000") is used.
callback
Function, optional An async callback.
Create a Mobile Website
View Site in Mobile | Classic
Share by: