Announcement: All noncommercial projects registered to use Earth Engine before April 15, 2025 must verify noncommercial eligibility to maintain Earth Engine access.
Stay organized with collections
Save and categorize content based on your preferences.
An imperative function that returns a map id and 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
FeatureCollection.getMap(visParams, callback)
MapId|Object
Argument
Type
Details
this: featurecollection
FeatureCollection
The FeatureCollection instance.
visParams
Object, optional
The visualization parameters. Currently only one parameter, 'color', containing an RGB color string is allowed. If vis_params isn't specified, then the color #000000 is used.
callback
Function, optional
An async callback. If not supplied, the call is made synchronously.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2023-10-06 UTC."],[[["`FeatureCollection.getMap()` generates a map ID and token for creating map overlays from FeatureCollections."],["This function allows styling FeatureCollections using visualization parameters like color."],["The returned object can be used with `ee.data.getTileUrl()` or `ui.Map.addLayer()` for displaying on a map."],["The function provides options for synchronous and asynchronous execution using a callback parameter."]]],[]]