Announcement: All noncommercial projects registered to use Earth Engine before April 15, 2025 must verify noncommercial eligibility to maintain Earth Engine access.
[[["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."],[[["\u003cp\u003e\u003ccode\u003eImage.getMap\u003c/code\u003e generates a map ID and optional token for creating map overlays from Earth Engine images.\u003c/p\u003e\n"],["\u003cp\u003eThe function returns an object usable with \u003ccode\u003eee.data.getTileUrl\u003c/code\u003e or \u003ccode\u003eui.Map.addLayer\u003c/code\u003e for displaying the image on a map, unless an asynchronous callback is provided.\u003c/p\u003e\n"],["\u003cp\u003eVisualization parameters can optionally be specified to control the image's appearance on the map overlay.\u003c/p\u003e\n"]]],["The `Image.getMap` function generates a map overlay's ID and an optional token. It accepts an Image instance, optional visualization parameters, and an optional asynchronous callback function. If a callback is provided, the function doesn't return a value; otherwise, it synchronously returns either a MapId or an object that can be used for generating a tile URL or adding a layer to a map. Visualization parameters define how the image will be displayed.\n"],null,["\u003cbr /\u003e\n\nAn imperative function that returns a map id and optional token, suitable for generating a Map overlay.\n\n\u003cbr /\u003e\n\nReturns an object which may be passed to ee.data.getTileUrl or ui.Map.addLayer. Undefined if a callback was specified.\n\n| Usage | Returns |\n|----------------------------------------------|---------------|\n| Image.getMap`(`*visParams* `, `*callback*`)` | MapId\\|Object |\n\n| Argument | Type | Details |\n|---------------|----------------------------------------|---------------------------------------------------------------------|\n| this: `image` | Image | The Image instance. |\n| `visParams` | ImageVisualizationParameters, optional | The visualization parameters. |\n| `callback` | Function, optional | An async callback. If not supplied, the call is made synchronously. |"]]