@google/earthengine 0.1.373 → 0.1.374

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -359,11 +359,18 @@ ee.ImageCollection.prototype.select = function(selectors, opt_names) {
359
359
  ee.ImageCollection.prototype.linkCollection = function(
360
360
  imageCollection, opt_linkedBands, opt_linkedProperties,
361
361
  opt_matchPropertyName) {
362
- const varargs = arguments;
362
+ let args = ee.arguments.extractFromFunction(
363
+ ee.ImageCollection.prototype.linkCollection, arguments);
363
364
  return /** @type {!ee.ImageCollection} */ (this.map(function(obj) {
364
365
  let img = /** @type {!ee.Image} */ (obj);
365
366
  img = /** @type {!ee.Image} */ (
366
- ee.ApiFunction._call('Image.linkCollection', img, ...varargs));
367
+ ee.ApiFunction._call(
368
+ 'Image.linkCollection',
369
+ img,
370
+ /** @type {!ee.ImageCollection} */ (args['imageCollection']),
371
+ /** @type {?Array<string>} */ (args['linkedBands']),
372
+ /** @type {?Array<string>} */ (args['linkedProperties']),
373
+ /** @type {?string} */ (args['matchPropertyName'])));
367
374
  return img;
368
375
  }));
369
376
  };
package/src/terrain.js CHANGED
File without changes