MCPcopy
hub / github.com/google/earthengine-api / callbackWrapper

Function callbackWrapper

javascript/src/image.js:386–396  ·  view source on GitHub ↗
(thumbId, opt_error)

Source from the content-addressed store, hash-verified

384 ee.Image.prototype.getThumbURL, arguments);
385 if (args['callback']) {
386 const callbackWrapper = (thumbId, opt_error) => {
387 let thumbUrl = '';
388 if (opt_error === undefined) {
389 try {
390 thumbUrl = ee.data.makeThumbUrl(thumbId);
391 } catch (e) {
392 opt_error = String(e.message);
393 }
394 }
395 args['callback'](thumbUrl, opt_error);
396 };
397 this.getThumbId(args['params'], callbackWrapper);
398 } else {
399 return ee.data.makeThumbUrl(

Callers

nothing calls this directly

Calls 1

StringClass · 0.85

Tested by

no test coverage detected