Stay organized with collections
Save and categorize content based on your preferences.
Get a thumbnail URL for this image.
Returns a thumbnail URL, or undefined if a callback was specified.
Usage
Returns
Image.getThumbURL(params, callback)
Object|String
Argument
Type
Details
this: image
Image
The Image instance.
params
Object
Parameters identical to ee.data.getMapId, plus, optionally:
dimensions (a number or pair of numbers in format WIDTHxHEIGHT) Maximum dimensions of the thumbnail to render, in pixels. If only one number is passed, it is used as the maximum, and the other dimension is computed by proportional scaling.
region Geospatial region of the image to render, it may be an ee.Geometry, GeoJSON, or an array of lat/lon points (E,S,W,N). If not set the default is the bounds image.
format (string) Either 'png' or 'jpg'.
callback
Function, optional
An optional 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 2024-02-20 UTC."],[[["The `Image.getThumbURL` function retrieves a thumbnail URL for a given image, offering options to customize dimensions, region, and format."],["This function accepts parameters similar to `ee.data.getMapId` to specify the desired thumbnail characteristics."],["Users can provide a callback function for asynchronous execution or receive the URL directly in a synchronous call."],["The thumbnail size can be controlled by specifying dimensions, with proportional scaling applied if only one dimension is given."],["The region of the image to be included in the thumbnail can be defined using various geometry formats, defaulting to the image bounds if not specified."]]],[]]