@google/earthengine 1.5.15 → 1.5.17

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@google/earthengine",
3
- "version": "1.5.15",
3
+ "version": "1.5.17",
4
4
  "description": "JavaScript client for Google Earth Engine API.",
5
5
  "author": "Google LLC",
6
6
  "license": "Apache-2.0",
package/src/apiclient.js CHANGED
@@ -24,7 +24,7 @@ const {trustedResourceUrl} = goog.require('safevalues.index');
24
24
  /** @namespace */
25
25
  const apiclient = {};
26
26
 
27
- const API_CLIENT_VERSION = '1.5.15';
27
+ const API_CLIENT_VERSION = '1.5.17';
28
28
 
29
29
  exports.VERSION = apiVersion.VERSION;
30
30
  exports.API_CLIENT_VERSION = API_CLIENT_VERSION;
@@ -1,12 +1,11 @@
1
1
  goog.provide('ee.FloatTileOverlay');
2
2
 
3
- goog.require('ee.AbstractOverlay');
4
- goog.require('ee.TileEvent');
5
3
  goog.require('goog.array');
6
4
  goog.require('goog.dom');
7
5
  goog.require('goog.dom.TagName');
8
6
  goog.require('goog.net.XmlHttp');
9
7
  goog.require('goog.structs.Map');
8
+ goog.require('earthengine_api.javascript.abstractoverlay');
10
9
 
11
10
 
12
11
  /**
@@ -16,7 +15,9 @@ goog.require('goog.structs.Map');
16
15
  * @ignore
17
16
  * @deprecated Use ee.layers.BinaryOverlay instead.
18
17
  */
19
- ee.FloatTileOverlay = class extends ee.AbstractOverlay {
18
+ ee.FloatTileOverlay =
19
+ class extends earthengine_api.javascript.abstractoverlay
20
+ .AbstractOverlay {
20
21
  /**
21
22
  * @param {string} url The URL for fetching floating point tiles.
22
23
  * @param {string} mapId The map ID for fetching floating point tiles.
@@ -137,7 +138,9 @@ ee.FloatTileOverlay = class extends ee.AbstractOverlay {
137
138
  * @private
138
139
  */
139
140
  dispatchTileEvent_() {
140
- this.dispatchEvent(new ee.TileEvent(this.tilesLoading.length));
141
+ this.dispatchEvent(
142
+ new earthengine_api.javascript.abstractoverlay
143
+ .TileEvent(this.tilesLoading.length));
141
144
  }
142
145
 
143
146
  /** @override */
@@ -1,8 +1,6 @@
1
1
  goog.provide('ee.MapLayerOverlay');
2
2
 
3
- goog.require('ee.AbstractOverlay');
4
3
  goog.require('ee.MapTileManager');
5
- goog.require('ee.TileEvent');
6
4
  goog.require('goog.array');
7
5
  goog.require('goog.dom');
8
6
  goog.require('goog.dom.TagName');
@@ -12,6 +10,7 @@ goog.require('goog.iter');
12
10
  goog.require('goog.net.EventType');
13
11
  goog.require('goog.structs.Set');
14
12
  goog.require('goog.style');
13
+ goog.require('earthengine_api.javascript.abstractoverlay');
15
14
  goog.requireType('ee.data.Profiler');
16
15
  goog.requireType('goog.events.Event');
17
16
 
@@ -24,7 +23,9 @@ goog.requireType('goog.events.Event');
24
23
  * @ignore
25
24
  * @deprecated Use ee.layers.ImageOverlay instead.
26
25
  */
27
- ee.MapLayerOverlay = class extends ee.AbstractOverlay {
26
+ ee.MapLayerOverlay =
27
+ class extends earthengine_api.javascript.abstractoverlay
28
+ .AbstractOverlay {
28
29
  /**
29
30
  * @param {string} url The url for fetching this layer's tiles.
30
31
  * @param {string} mapId The map ID for fetching this layer's tiles.
@@ -66,15 +67,18 @@ ee.MapLayerOverlay = class extends ee.AbstractOverlay {
66
67
 
67
68
  /**
68
69
  * Adds a callback to be fired each time a tile is loaded.
69
- * @param {function(ee.TileEvent)} callback The function to call when a
70
- * tile has loaded.
70
+ * @param {function(!earthengine_api.javascript.abstractoverlay.TileEvent)}
71
+ * callback The function to call when a tile has loaded.
71
72
  * @return {!Object} An ID which can be passed to removeTileCallback() to
72
73
  * remove the callback.
73
74
  * @export
74
75
  */
75
76
  addTileCallback(callback) {
76
77
  return /** @type {!Object} */ (goog.events.listen(
77
- this, ee.AbstractOverlay.EventType.TILE_LOADED, callback));
78
+ this,
79
+ earthengine_api.javascript.abstractoverlay
80
+ .AbstractOverlay.EventType.TILE_LOADED,
81
+ callback));
78
82
  }
79
83
 
80
84
  /**
@@ -92,7 +96,9 @@ ee.MapLayerOverlay = class extends ee.AbstractOverlay {
92
96
  * @private
93
97
  */
94
98
  dispatchTileEvent_() {
95
- this.dispatchEvent(new ee.TileEvent(this.tilesLoading.length));
99
+ this.dispatchEvent(
100
+ new earthengine_api.javascript.abstractoverlay
101
+ .TileEvent(this.tilesLoading.length));
96
102
  }
97
103
 
98
104
  /**