@google/earthengine 0.1.400 → 0.1.401
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/build/browser.js +45 -52
- package/build/ee_api_js.js +65 -65
- package/build/ee_api_js_debug.js +23 -30
- package/build/ee_api_js_npm.js +45 -52
- package/build/main.js +45 -52
- package/package.json +1 -1
- package/src/apiclient.js +1 -1
- package/src/examples/UserInterface/LandsatExplorer.js +10 -6
- package/src/layers/earthenginetilesource.js +20 -9
package/build/main.js
CHANGED
|
@@ -3808,9 +3808,9 @@ DOMCONTENTLOADED:"DOMContentLoaded", ERROR:"error", HELP:"help", LOAD:"load", LO
|
|
|
3808
3808
|
SEEKED:"seeked", SEEKING:"seeking", STALLED:"stalled", SUSPEND:"suspend", TIMEUPDATE:"timeupdate", VOLUMECHANGE:"volumechange", WAITING:"waiting", SOURCEOPEN:"sourceopen", SOURCEENDED:"sourceended", SOURCECLOSED:"sourceclosed", ABORT:"abort", UPDATE:"update", UPDATESTART:"updatestart", UPDATEEND:"updateend", HASHCHANGE:"hashchange", PAGEHIDE:"pagehide", PAGESHOW:"pageshow", POPSTATE:"popstate", COPY:"copy", PASTE:"paste", CUT:"cut", BEFORECOPY:"beforecopy", BEFORECUT:"beforecut", BEFOREPASTE:"beforepaste",
|
|
3809
3809
|
ONLINE:"online", OFFLINE:"offline", MESSAGE:"message", CONNECT:"connect", INSTALL:"install", ACTIVATE:"activate", FETCH:"fetch", FOREIGNFETCH:"foreignfetch", MESSAGEERROR:"messageerror", STATECHANGE:"statechange", UPDATEFOUND:"updatefound", CONTROLLERCHANGE:"controllerchange", ANIMATIONSTART:goog.events.eventTypeHelpers.getVendorPrefixedName("AnimationStart"), ANIMATIONEND:goog.events.eventTypeHelpers.getVendorPrefixedName("AnimationEnd"), ANIMATIONITERATION:goog.events.eventTypeHelpers.getVendorPrefixedName("AnimationIteration"),
|
|
3810
3810
|
TRANSITIONEND:goog.events.eventTypeHelpers.getVendorPrefixedName("TransitionEnd"), POINTERDOWN:"pointerdown", POINTERUP:"pointerup", POINTERCANCEL:"pointercancel", POINTERMOVE:"pointermove", POINTEROVER:"pointerover", POINTEROUT:"pointerout", POINTERENTER:"pointerenter", POINTERLEAVE:"pointerleave", GOTPOINTERCAPTURE:"gotpointercapture", LOSTPOINTERCAPTURE:"lostpointercapture", MSGESTURECHANGE:"MSGestureChange", MSGESTUREEND:"MSGestureEnd", MSGESTUREHOLD:"MSGestureHold", MSGESTURESTART:"MSGestureStart",
|
|
3811
|
-
MSGESTURETAP:"MSGestureTap", MSGOTPOINTERCAPTURE:"MSGotPointerCapture", MSINERTIASTART:"MSInertiaStart", MSLOSTPOINTERCAPTURE:"MSLostPointerCapture", MSPOINTERCANCEL:"MSPointerCancel", MSPOINTERDOWN:"MSPointerDown", MSPOINTERENTER:"MSPointerEnter", MSPOINTERHOVER:"MSPointerHover", MSPOINTERLEAVE:"MSPointerLeave", MSPOINTERMOVE:"MSPointerMove", MSPOINTEROUT:"MSPointerOut", MSPOINTEROVER:"MSPointerOver", MSPOINTERUP:"MSPointerUp", TEXT:"text", TEXTINPUT:
|
|
3812
|
-
|
|
3813
|
-
|
|
3811
|
+
MSGESTURETAP:"MSGestureTap", MSGOTPOINTERCAPTURE:"MSGotPointerCapture", MSINERTIASTART:"MSInertiaStart", MSLOSTPOINTERCAPTURE:"MSLostPointerCapture", MSPOINTERCANCEL:"MSPointerCancel", MSPOINTERDOWN:"MSPointerDown", MSPOINTERENTER:"MSPointerEnter", MSPOINTERHOVER:"MSPointerHover", MSPOINTERLEAVE:"MSPointerLeave", MSPOINTERMOVE:"MSPointerMove", MSPOINTEROUT:"MSPointerOut", MSPOINTEROVER:"MSPointerOver", MSPOINTERUP:"MSPointerUp", TEXT:"text", TEXTINPUT:"textInput", COMPOSITIONSTART:"compositionstart",
|
|
3812
|
+
COMPOSITIONUPDATE:"compositionupdate", COMPOSITIONEND:"compositionend", BEFOREINPUT:"beforeinput", FULLSCREENCHANGE:"fullscreenchange", WEBKITBEGINFULLSCREEN:"webkitbeginfullscreen", WEBKITENDFULLSCREEN:"webkitendfullscreen", EXIT:"exit", LOADABORT:"loadabort", LOADCOMMIT:"loadcommit", LOADREDIRECT:"loadredirect", LOADSTART:"loadstart", LOADSTOP:"loadstop", RESPONSIVE:"responsive", SIZECHANGED:"sizechanged", UNRESPONSIVE:"unresponsive", VISIBILITYCHANGE:"visibilitychange", STORAGE:"storage", BEFOREPRINT:"beforeprint",
|
|
3813
|
+
AFTERPRINT:"afterprint", BEFOREINSTALLPROMPT:"beforeinstallprompt", APPINSTALLED:"appinstalled", CANCEL:"cancel", FINISH:"finish", REMOVE:"remove"};
|
|
3814
3814
|
goog.events.BrowserEvent = function(opt_e, opt_currentTarget) {
|
|
3815
3815
|
goog.events.Event.call(this, opt_e ? opt_e.type : "");
|
|
3816
3816
|
this.relatedTarget = this.currentTarget = this.target = null;
|
|
@@ -15208,8 +15208,8 @@ goog.dom.BrowserFeature.OFFSCREEN_CANVAS_2D = !goog.dom.BrowserFeature.ASSUME_NO
|
|
|
15208
15208
|
goog.dom.BrowserFeature.CAN_ADD_NAME_OR_TYPE_ATTRIBUTES = !0;
|
|
15209
15209
|
goog.dom.BrowserFeature.CAN_USE_CHILDREN_ATTRIBUTE = !0;
|
|
15210
15210
|
goog.dom.BrowserFeature.CAN_USE_INNER_TEXT = !1;
|
|
15211
|
-
goog.dom.BrowserFeature.CAN_USE_PARENT_ELEMENT_PROPERTY = goog.userAgent.
|
|
15212
|
-
goog.dom.BrowserFeature.INNER_HTML_NEEDS_SCOPED_ELEMENT =
|
|
15211
|
+
goog.dom.BrowserFeature.CAN_USE_PARENT_ELEMENT_PROPERTY = goog.userAgent.WEBKIT;
|
|
15212
|
+
goog.dom.BrowserFeature.INNER_HTML_NEEDS_SCOPED_ELEMENT = !1;
|
|
15213
15213
|
goog.dom.asserts = {};
|
|
15214
15214
|
goog.dom.asserts.assertIsLocation = function(o) {
|
|
15215
15215
|
if (goog.asserts.ENABLE_ASSERTS) {
|
|
@@ -16605,7 +16605,7 @@ goog.dom.getDocumentScroll = function() {
|
|
|
16605
16605
|
};
|
|
16606
16606
|
goog.dom.getDocumentScroll_ = function(doc) {
|
|
16607
16607
|
var el = goog.dom.getDocumentScrollElement_(doc), win = goog.dom.getWindow_(doc);
|
|
16608
|
-
return
|
|
16608
|
+
return new goog.math.Coordinate(win.pageXOffset || el.scrollLeft, win.pageYOffset || el.scrollTop);
|
|
16609
16609
|
};
|
|
16610
16610
|
goog.dom.getDocumentScrollElement = function() {
|
|
16611
16611
|
return goog.dom.getDocumentScrollElement_(document);
|
|
@@ -16672,7 +16672,7 @@ goog.dom.safeHtmlToNode = function(html) {
|
|
|
16672
16672
|
};
|
|
16673
16673
|
goog.dom.safeHtmlToNode_ = function(doc, html) {
|
|
16674
16674
|
var tempDiv = goog.dom.createElement_(doc, goog.dom.TagName.DIV);
|
|
16675
|
-
goog.
|
|
16675
|
+
goog.dom.safe.setInnerHtml(tempDiv, html);
|
|
16676
16676
|
return goog.dom.childrenToNode_(doc, tempDiv);
|
|
16677
16677
|
};
|
|
16678
16678
|
goog.dom.childrenToNode_ = function(doc, tempDiv) {
|
|
@@ -16833,7 +16833,7 @@ goog.dom.isWindow = function(obj) {
|
|
|
16833
16833
|
};
|
|
16834
16834
|
goog.dom.getParentElement = function(element) {
|
|
16835
16835
|
var parent;
|
|
16836
|
-
if (goog.
|
|
16836
|
+
if (goog.userAgent.WEBKIT && (parent = element.parentElement)) {
|
|
16837
16837
|
return parent;
|
|
16838
16838
|
}
|
|
16839
16839
|
parent = element.parentNode;
|
|
@@ -16861,14 +16861,6 @@ goog.dom.compareNodeOrder = function(node1, node2) {
|
|
|
16861
16861
|
if (node1.compareDocumentPosition) {
|
|
16862
16862
|
return node1.compareDocumentPosition(node2) & 2 ? 1 : -1;
|
|
16863
16863
|
}
|
|
16864
|
-
if (goog.userAgent.IE && !goog.userAgent.isDocumentModeOrHigher(9)) {
|
|
16865
|
-
if (node1.nodeType == goog.dom.NodeType.DOCUMENT) {
|
|
16866
|
-
return -1;
|
|
16867
|
-
}
|
|
16868
|
-
if (node2.nodeType == goog.dom.NodeType.DOCUMENT) {
|
|
16869
|
-
return 1;
|
|
16870
|
-
}
|
|
16871
|
-
}
|
|
16872
16864
|
if ("sourceIndex" in node1 || node1.parentNode && "sourceIndex" in node1.parentNode) {
|
|
16873
16865
|
var isElement1 = node1.nodeType == goog.dom.NodeType.ELEMENT, isElement2 = node2.nodeType == goog.dom.NodeType.ELEMENT;
|
|
16874
16866
|
if (isElement1 && isElement2) {
|
|
@@ -17034,8 +17026,7 @@ goog.dom.setFocusableTabIndex = function(element, enable) {
|
|
|
17034
17026
|
enable ? element.tabIndex = 0 : (element.tabIndex = -1, element.removeAttribute("tabIndex"));
|
|
17035
17027
|
};
|
|
17036
17028
|
goog.dom.isFocusable = function(element) {
|
|
17037
|
-
|
|
17038
|
-
return (focusable = goog.dom.nativelySupportsFocus_(element) ? !element.disabled && (!goog.dom.hasSpecifiedTabIndex_(element) || goog.dom.isTabIndexFocusable_(element)) : goog.dom.isFocusableTabIndex(element)) && goog.userAgent.IE ? goog.dom.hasNonZeroBoundingRect_(element) : focusable;
|
|
17029
|
+
return goog.dom.nativelySupportsFocus_(element) ? !element.disabled && (!goog.dom.hasSpecifiedTabIndex_(element) || goog.dom.isTabIndexFocusable_(element)) : goog.dom.isFocusableTabIndex(element);
|
|
17039
17030
|
};
|
|
17040
17031
|
goog.dom.hasSpecifiedTabIndex_ = function(element) {
|
|
17041
17032
|
return element.hasAttribute("tabindex");
|
|
@@ -17048,7 +17039,7 @@ goog.dom.nativelySupportsFocus_ = function(element) {
|
|
|
17048
17039
|
return element.tagName == goog.dom.TagName.A && element.hasAttribute("href") || element.tagName == goog.dom.TagName.INPUT || element.tagName == goog.dom.TagName.TEXTAREA || element.tagName == goog.dom.TagName.SELECT || element.tagName == goog.dom.TagName.BUTTON;
|
|
17049
17040
|
};
|
|
17050
17041
|
goog.dom.hasNonZeroBoundingRect_ = function(element) {
|
|
17051
|
-
var rect = "function" !== typeof element.getBoundingClientRect
|
|
17042
|
+
var rect = "function" !== typeof element.getBoundingClientRect ? {height:element.offsetHeight, width:element.offsetWidth} : element.getBoundingClientRect();
|
|
17052
17043
|
return null != rect && 0 < rect.height && 0 < rect.width;
|
|
17053
17044
|
};
|
|
17054
17045
|
goog.dom.getTextContent = function(node) {
|
|
@@ -18990,7 +18981,7 @@ var $jscomp$templatelit$294235699$99 = $jscomp.createTemplateTagFirstArg(["https
|
|
|
18990
18981
|
ee.apiclient = {};
|
|
18991
18982
|
var module$contents$ee$apiclient_apiclient = {};
|
|
18992
18983
|
ee.apiclient.VERSION = module$exports$ee$apiVersion.V1;
|
|
18993
|
-
ee.apiclient.API_CLIENT_VERSION = "0.1.
|
|
18984
|
+
ee.apiclient.API_CLIENT_VERSION = "0.1.401";
|
|
18994
18985
|
ee.apiclient.NULL_VALUE = module$exports$eeapiclient$domain_object.NULL_VALUE;
|
|
18995
18986
|
ee.apiclient.PromiseRequestService = module$exports$eeapiclient$promise_request_service.PromiseRequestService;
|
|
18996
18987
|
ee.apiclient.MakeRequestParams = module$contents$eeapiclient$request_params_MakeRequestParams;
|
|
@@ -19280,8 +19271,8 @@ module$contents$ee$apiclient_apiclient.send = function(path, params, callback, m
|
|
|
19280
19271
|
var profileHookAtCallTime = module$contents$ee$apiclient_apiclient.profileHook_, contentType = "application/x-www-form-urlencoded";
|
|
19281
19272
|
body && (contentType = "application/json", method && method.startsWith("multipart") && (contentType = method, method = "POST"));
|
|
19282
19273
|
method = method || "POST";
|
|
19283
|
-
var headers = {"Content-Type":contentType}, version = "0.1.
|
|
19284
|
-
"0.1.
|
|
19274
|
+
var headers = {"Content-Type":contentType}, version = "0.1.401";
|
|
19275
|
+
"0.1.401" === version && (version = "latest");
|
|
19285
19276
|
headers[module$contents$ee$apiclient_apiclient.API_CLIENT_VERSION_HEADER] = "ee-js/" + version;
|
|
19286
19277
|
var authToken = module$contents$ee$apiclient_apiclient.getAuthToken();
|
|
19287
19278
|
if (null != authToken) {
|
|
@@ -26347,14 +26338,15 @@ goog.structs.PriorityPool.prototype.disposeInternal = function() {
|
|
|
26347
26338
|
this.requestQueue_.clear();
|
|
26348
26339
|
this.requestQueue_ = null;
|
|
26349
26340
|
};
|
|
26350
|
-
var module$contents$ee$layers$EarthEngineTileSource_EarthEngineTileSource = function(mapId, opt_profiler) {
|
|
26341
|
+
var module$contents$ee$layers$EarthEngineTileSource_EarthEngineTileSource = function(mapId, opt_profiler, opt_parallelism) {
|
|
26351
26342
|
module$exports$ee$layers$AbstractTileSource.call(this);
|
|
26352
26343
|
this.mapId_ = mapId;
|
|
26353
26344
|
this.profiler_ = opt_profiler || null;
|
|
26345
|
+
this.token_count_ = opt_parallelism || module$contents$ee$layers$EarthEngineTileSource_EarthEngineTileSource.DEFAULT_TOKEN_COUNT_;
|
|
26354
26346
|
};
|
|
26355
26347
|
$jscomp.inherits(module$contents$ee$layers$EarthEngineTileSource_EarthEngineTileSource, module$exports$ee$layers$AbstractTileSource);
|
|
26356
26348
|
module$contents$ee$layers$EarthEngineTileSource_EarthEngineTileSource.prototype.loadTile = function(tile, opt_priority) {
|
|
26357
|
-
var ProfilerHeader = module$contents$ee$apiclient_apiclient.PROFILE_HEADER.toLowerCase(), key = goog.events.listen(tile, ee.layers.AbstractTile.EventType.STATUS_CHANGED, function() {
|
|
26349
|
+
var $jscomp$this$1134479182$2 = this, ProfilerHeader = module$contents$ee$apiclient_apiclient.PROFILE_HEADER.toLowerCase(), key = goog.events.listen(tile, ee.layers.AbstractTile.EventType.STATUS_CHANGED, function() {
|
|
26358
26350
|
switch(tile.getStatus()) {
|
|
26359
26351
|
case ee.layers.AbstractTile.Status.LOADED:
|
|
26360
26352
|
var profileId = tile.sourceResponseHeaders[ProfilerHeader];
|
|
@@ -26366,14 +26358,15 @@ module$contents$ee$layers$EarthEngineTileSource_EarthEngineTileSource.prototype.
|
|
|
26366
26358
|
}
|
|
26367
26359
|
}, void 0, this);
|
|
26368
26360
|
tile.sourceUrl = this.getTileUrl_(tile.coord, tile.zoom);
|
|
26369
|
-
|
|
26370
|
-
|
|
26361
|
+
this.getGlobalTokenPool_().getObject(function(token) {
|
|
26362
|
+
$jscomp$this$1134479182$2.handleAvailableToken_(tile, token);
|
|
26363
|
+
}, opt_priority);
|
|
26371
26364
|
};
|
|
26372
26365
|
module$contents$ee$layers$EarthEngineTileSource_EarthEngineTileSource.prototype.getUniqueId = function() {
|
|
26373
26366
|
return this.mapId_.mapid + "-" + this.mapId_.token;
|
|
26374
26367
|
};
|
|
26375
26368
|
module$contents$ee$layers$EarthEngineTileSource_EarthEngineTileSource.prototype.handleAvailableToken_ = function(tile, token) {
|
|
26376
|
-
var tokenPool =
|
|
26369
|
+
var tokenPool = this.getGlobalTokenPool_();
|
|
26377
26370
|
if (tile.isDisposed() || tile.getStatus() == ee.layers.AbstractTile.Status.ABORTED) {
|
|
26378
26371
|
tokenPool.releaseObject(token);
|
|
26379
26372
|
} else {
|
|
@@ -26387,13 +26380,13 @@ module$contents$ee$layers$EarthEngineTileSource_EarthEngineTileSource.prototype.
|
|
|
26387
26380
|
var url = ee.data.getTileUrl(this.mapId_, coord.x, coord.y, zoom);
|
|
26388
26381
|
return this.profiler_ && this.profiler_.isEnabled() ? url + "&profiling=1" : url;
|
|
26389
26382
|
};
|
|
26390
|
-
module$contents$ee$layers$EarthEngineTileSource_EarthEngineTileSource.getGlobalTokenPool_ = function() {
|
|
26391
|
-
module$contents$ee$layers$EarthEngineTileSource_EarthEngineTileSource.TOKEN_POOL_ || (module$contents$ee$layers$EarthEngineTileSource_EarthEngineTileSource.TOKEN_POOL_ = new goog.structs.PriorityPool(0,
|
|
26383
|
+
module$contents$ee$layers$EarthEngineTileSource_EarthEngineTileSource.prototype.getGlobalTokenPool_ = function() {
|
|
26384
|
+
module$contents$ee$layers$EarthEngineTileSource_EarthEngineTileSource.TOKEN_POOL_ || (module$contents$ee$layers$EarthEngineTileSource_EarthEngineTileSource.TOKEN_POOL_ = new goog.structs.PriorityPool(0, this.token_count_));
|
|
26392
26385
|
return module$contents$ee$layers$EarthEngineTileSource_EarthEngineTileSource.TOKEN_POOL_;
|
|
26393
26386
|
};
|
|
26394
26387
|
goog.exportSymbol("ee.layers.EarthEngineTileSource", module$contents$ee$layers$EarthEngineTileSource_EarthEngineTileSource);
|
|
26395
26388
|
module$contents$ee$layers$EarthEngineTileSource_EarthEngineTileSource.TOKEN_POOL_ = null;
|
|
26396
|
-
module$contents$ee$layers$EarthEngineTileSource_EarthEngineTileSource.
|
|
26389
|
+
module$contents$ee$layers$EarthEngineTileSource_EarthEngineTileSource.DEFAULT_TOKEN_COUNT_ = 4;
|
|
26397
26390
|
ee.layers.EarthEngineTileSource = module$contents$ee$layers$EarthEngineTileSource_EarthEngineTileSource;
|
|
26398
26391
|
ee.layers.FeatureViewTileSource = {};
|
|
26399
26392
|
var module$contents$ee$layers$FeatureViewTileSource_FeatureViewTileSource = function(tilesKey) {
|
|
@@ -26848,29 +26841,29 @@ ee.data.Profiler.Format.prototype.toString = function() {
|
|
|
26848
26841
|
ee.data.Profiler.Format.TEXT = new ee.data.Profiler.Format("text");
|
|
26849
26842
|
ee.data.Profiler.Format.JSON = new ee.data.Profiler.Format("json");
|
|
26850
26843
|
(function() {
|
|
26851
|
-
var exportedFnInfo = {}, orderedFnNames = "ee.ApiFunction.
|
|
26852
|
-
orderedParamLists = [["name", "
|
|
26853
|
-
"image opt_description opt_bucket opt_fileFormat opt_path opt_writePublicTiles opt_scale opt_maxZoom opt_minZoom opt_region opt_skipEmptyTiles opt_mapsApiKey opt_bucketCorsUris opt_priority".split(" "), "collection opt_description opt_bucket opt_fileNamePrefix opt_framesPerSecond opt_writePublicTiles opt_minZoom opt_maxZoom opt_scale opt_region opt_skipEmptyTiles opt_minTimeMachineZoomSubset opt_maxTimeMachineZoomSubset opt_tileWidth opt_tileHeight opt_tileStride opt_videoFormat opt_version opt_mapsApiKey opt_bucketCorsUris opt_priority".split(" "),
|
|
26844
|
+
var exportedFnInfo = {}, orderedFnNames = "ee.ApiFunction._call ee.ApiFunction.lookup ee.ApiFunction._apply ee.batch.Export.map.toCloudStorage ee.batch.Export.videoMap.toCloudStorage ee.batch.Export.table.toBigQuery ee.batch.Export.image.toCloudStorage ee.batch.Export.video.toCloudStorage ee.batch.Export.table.toFeatureView ee.batch.Export.video.toDrive ee.batch.Export.table.toDrive ee.batch.Export.classifier.toAsset ee.batch.Export.image.toDrive ee.batch.Export.table.toAsset ee.batch.Export.table.toCloudStorage ee.batch.Export.image.toAsset ee.Collection.prototype.filter ee.Collection.prototype.filterDate ee.Collection.prototype.map ee.Collection.prototype.iterate ee.Collection.prototype.limit ee.Collection.prototype.sort ee.Collection.prototype.filterMetadata ee.Collection.prototype.filterBounds ee.ComputedObject.prototype.evaluate ee.ComputedObject.prototype.getInfo ee.ComputedObject.prototype.serialize ee.ComputedObject.prototype.aside ee.data.makeDownloadUrl ee.data.authenticateViaPopup ee.data.getAssetRoots ee.data.listFeatures ee.data.getAsset ee.data.setWorkloadTag ee.data.createAssetHome ee.data.getInfo ee.data.createAsset ee.data.authenticateViaPrivateKey ee.data.getOperation ee.data.setDefaultWorkloadTag ee.data.newTaskId ee.data.computeValue ee.data.resetWorkloadTag ee.data.getThumbId ee.data.updateAsset ee.data.cancelTask ee.data.getVideoThumbId ee.data.getFilmstripThumbId ee.data.getList ee.data.createFolder ee.data.getTaskStatus ee.data.updateTask ee.data.setAssetAcl ee.data.startIngestion ee.data.startProcessing ee.data.listAssets ee.data.makeThumbUrl ee.data.renameAsset ee.data.setAssetProperties ee.data.authenticateViaOauth ee.data.getMapId ee.data.copyAsset ee.data.deleteAsset ee.data.getTaskList ee.data.listBuckets ee.data.getAssetRootQuota ee.data.getTableDownloadId ee.data.getFeatureViewTilesKey ee.data.authenticate ee.data.getTileUrl ee.data.startTableIngestion ee.data.makeTableDownloadUrl ee.data.getTaskListWithLimit ee.data.getWorkloadTag ee.data.listOperations ee.data.getAssetAcl ee.data.cancelOperation ee.data.listImages ee.data.getDownloadId ee.Date ee.Deserializer.fromCloudApiJSON ee.Deserializer.decode ee.Deserializer.fromJSON ee.Deserializer.decodeCloudApi ee.Dictionary ee.initialize ee.call ee.reset ee.Algorithms ee.InitState ee.apply ee.TILE_SIZE ee.Element.prototype.set ee.Encodable.SourceFrame ee.Feature.prototype.getInfo ee.Feature.prototype.getMapId ee.Feature.prototype.getMap ee.Feature ee.FeatureCollection.prototype.getInfo ee.FeatureCollection ee.FeatureCollection.prototype.getDownloadURL ee.FeatureCollection.prototype.getMap ee.FeatureCollection.prototype.select ee.FeatureCollection.prototype.getMapId ee.Filter.bounds ee.Filter.metadata ee.Filter.and ee.Filter.gt ee.Filter.lt ee.Filter.neq ee.Filter.inList ee.Filter.or ee.Filter.lte ee.Filter.gte ee.Filter.prototype.not ee.Filter.eq ee.Filter ee.Filter.date ee.Function.prototype.call ee.Function.prototype.apply ee.Geometry.prototype.toGeoJSONString ee.Geometry.MultiPoint ee.Geometry.BBox ee.Geometry.LineString ee.Geometry.MultiPolygon ee.Geometry.prototype.serialize ee.Geometry ee.Geometry.Rectangle ee.Geometry.Polygon ee.Geometry.Point ee.Geometry.prototype.toGeoJSON ee.Geometry.MultiLineString ee.Geometry.LinearRing ee.Image ee.Image.rgb ee.Image.cat ee.Image.prototype.select ee.Image.prototype.getInfo ee.Image.prototype.getMapId ee.Image.prototype.getThumbURL ee.Image.prototype.expression ee.Image.prototype.clip ee.Image.prototype.getMap ee.Image.prototype.getDownloadURL ee.Image.prototype.rename ee.Image.prototype.getThumbId ee.ImageCollection.prototype.getInfo ee.ImageCollection.prototype.select ee.ImageCollection.prototype.getVideoThumbURL ee.ImageCollection.prototype.getMap ee.ImageCollection.prototype.linkCollection ee.ImageCollection.prototype.getMapId ee.ImageCollection.prototype.first ee.ImageCollection.prototype.getFilmstripThumbURL ee.ImageCollection ee.List ee.Number ee.Serializer.toCloudApiJSON ee.Serializer.toJSON ee.Serializer.encodeCloudApi ee.Serializer.toReadableCloudApiJSON ee.Serializer.toReadableJSON ee.Serializer.encodeCloudApiPretty ee.Serializer.encode ee.String ee.Terrain".split(" "),
|
|
26845
|
+
orderedParamLists = [["name", "var_args"], ["name"], ["name", "namedArgs"], "image opt_description opt_bucket opt_fileFormat opt_path opt_writePublicTiles opt_scale opt_maxZoom opt_minZoom opt_region opt_skipEmptyTiles opt_mapsApiKey opt_bucketCorsUris opt_priority".split(" "), "collection opt_description opt_bucket opt_fileNamePrefix opt_framesPerSecond opt_writePublicTiles opt_minZoom opt_maxZoom opt_scale opt_region opt_skipEmptyTiles opt_minTimeMachineZoomSubset opt_maxTimeMachineZoomSubset opt_tileWidth opt_tileHeight opt_tileStride opt_videoFormat opt_version opt_mapsApiKey opt_bucketCorsUris opt_priority".split(" "),
|
|
26854
26846
|
"collection opt_description opt_table opt_overwrite opt_append opt_selectors opt_maxVertices opt_priority".split(" "), "image opt_description opt_bucket opt_fileNamePrefix opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_shardSize opt_fileDimensions opt_skipEmptyTiles opt_fileFormat opt_formatOptions opt_priority".split(" "), "collection opt_description opt_bucket opt_fileNamePrefix opt_framesPerSecond opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_maxFrames opt_priority".split(" "),
|
|
26855
|
-
"collection opt_description opt_assetId opt_maxFeaturesPerTile opt_thinningStrategy opt_thinningRanking opt_zOrderRanking opt_priority".split(" "), "collection opt_description opt_folder opt_fileNamePrefix opt_framesPerSecond opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_maxFrames opt_priority".split(" "), "collection opt_description opt_folder opt_fileNamePrefix opt_fileFormat opt_selectors opt_maxVertices opt_priority".split(" "), "
|
|
26856
|
-
|
|
26857
|
-
["
|
|
26858
|
-
|
|
26859
|
-
|
|
26860
|
-
"
|
|
26861
|
-
["
|
|
26862
|
-
"
|
|
26863
|
-
|
|
26864
|
-
["
|
|
26865
|
-
[
|
|
26866
|
-
module$contents$ee$batch_Export.
|
|
26867
|
-
ee.
|
|
26868
|
-
ee.
|
|
26869
|
-
ee.data.
|
|
26870
|
-
ee.
|
|
26871
|
-
ee.
|
|
26872
|
-
ee.
|
|
26873
|
-
ee.
|
|
26847
|
+
"collection opt_description opt_assetId opt_maxFeaturesPerTile opt_thinningStrategy opt_thinningRanking opt_zOrderRanking opt_priority".split(" "), "collection opt_description opt_folder opt_fileNamePrefix opt_framesPerSecond opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_maxFrames opt_priority".split(" "), "collection opt_description opt_folder opt_fileNamePrefix opt_fileFormat opt_selectors opt_maxVertices opt_priority".split(" "), ["classifier", "opt_description",
|
|
26848
|
+
"opt_assetId", "opt_priority"], "image opt_description opt_folder opt_fileNamePrefix opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_shardSize opt_fileDimensions opt_skipEmptyTiles opt_fileFormat opt_formatOptions opt_priority".split(" "), ["collection", "opt_description", "opt_assetId", "opt_maxVertices", "opt_priority"], "collection opt_description opt_bucket opt_fileNamePrefix opt_fileFormat opt_selectors opt_maxVertices opt_priority".split(" "), "image opt_description opt_assetId opt_pyramidingPolicy opt_dimensions opt_region opt_scale opt_crs opt_crsTransform opt_maxPixels opt_shardSize opt_priority".split(" "),
|
|
26849
|
+
["filter"], ["start", "opt_end"], ["algorithm", "opt_dropNulls"], ["algorithm", "opt_first"], ["max", "opt_property", "opt_ascending"], ["property", "opt_ascending"], ["name", "operator", "value"], ["geometry"], ["callback"], ["opt_callback"], ["legacy"], ["func", "var_args"], ["id"], ["opt_success", "opt_error"], ["opt_callback"], ["asset", "params", "opt_callback"], ["id", "opt_callback"], ["tag"], ["requestedId", "opt_callback"], ["id", "opt_callback"], ["value", "opt_path", "opt_force", "opt_properties",
|
|
26850
|
+
"opt_callback"], ["privateKey", "opt_success", "opt_error", "opt_extraScopes", "opt_suppressDefaultScopes"], ["operationName", "opt_callback"], ["tag"], ["opt_count", "opt_callback"], ["obj", "opt_callback"], ["opt_resetDefault"], ["params", "opt_callback"], ["assetId", "asset", "updateFields", "opt_callback"], ["taskId", "opt_callback"], ["params", "opt_callback"], ["params", "opt_callback"], ["params", "opt_callback"], ["path", "opt_force", "opt_callback"], ["taskId", "opt_callback"], ["taskId",
|
|
26851
|
+
"action", "opt_callback"], ["assetId", "aclUpdate", "opt_callback"], ["taskId", "request", "opt_callback"], ["taskId", "params", "opt_callback"], ["parent", "opt_params", "opt_callback"], ["id"], ["sourceId", "destinationId", "opt_callback"], ["assetId", "properties", "opt_callback"], "clientId success opt_error opt_extraScopes opt_onImmediateFailed opt_suppressDefaultScopes".split(" "), ["params", "opt_callback"], ["sourceId", "destinationId", "opt_overwrite", "opt_callback"], ["assetId", "opt_callback"],
|
|
26852
|
+
["opt_callback"], ["project", "opt_callback"], ["rootId", "opt_callback"], ["params", "opt_callback"], ["params", "opt_callback"], ["clientId", "success", "opt_error", "opt_extraScopes", "opt_onImmediateFailed"], ["id", "x", "y", "z"], ["taskId", "request", "opt_callback"], ["id"], ["opt_limit", "opt_callback"], [], ["opt_limit", "opt_callback"], ["assetId", "opt_callback"], ["operationName", "opt_callback"], ["parent", "opt_params", "opt_callback"], ["params", "opt_callback"], ["date", "opt_tz"],
|
|
26853
|
+
["json"], ["json"], ["json"], ["json"], ["opt_dict"], "opt_baseurl opt_tileurl opt_successCallback opt_errorCallback opt_xsrfToken opt_project".split(" "), ["func", "var_args"], [], [], [], ["func", "namedArgs"], [], ["var_args"], [], ["opt_callback"], ["opt_visParams", "opt_callback"], ["opt_visParams", "opt_callback"], ["geometry", "opt_properties"], ["opt_callback"], ["args", "opt_column"], ["opt_format", "opt_selectors", "opt_filename", "opt_callback"], ["opt_visParams", "opt_callback"], ["propertySelectors",
|
|
26854
|
+
"opt_newProperties", "opt_retainGeometry"], ["opt_visParams", "opt_callback"], ["geometry", "opt_errorMargin"], ["name", "operator", "value"], ["var_args"], ["name", "value"], ["name", "value"], ["name", "value"], ["opt_leftField", "opt_rightValue", "opt_rightField", "opt_leftValue"], ["var_args"], ["name", "value"], ["name", "value"], [], ["name", "value"], ["opt_filter"], ["start", "opt_end"], ["var_args"], ["namedArgs"], [], ["coords", "opt_proj"], ["west", "south", "east", "north"], ["coords",
|
|
26855
|
+
"opt_proj", "opt_geodesic", "opt_maxError"], ["coords", "opt_proj", "opt_geodesic", "opt_maxError", "opt_evenOdd"], ["legacy"], ["geoJson", "opt_proj", "opt_geodesic", "opt_evenOdd"], ["coords", "opt_proj", "opt_geodesic", "opt_evenOdd"], ["coords", "opt_proj", "opt_geodesic", "opt_maxError", "opt_evenOdd"], ["coords", "opt_proj"], [], ["coords", "opt_proj", "opt_geodesic", "opt_maxError"], ["coords", "opt_proj", "opt_geodesic", "opt_maxError"], ["opt_args"], ["r", "g", "b"], ["var_args"], ["var_args"],
|
|
26856
|
+
["opt_callback"], ["opt_visParams", "opt_callback"], ["params", "opt_callback"], ["expression", "opt_map"], ["geometry"], ["opt_visParams", "opt_callback"], ["params", "opt_callback"], ["var_args"], ["params", "opt_callback"], ["opt_callback"], ["selectors", "opt_names"], ["params", "opt_callback"], ["opt_visParams", "opt_callback"], ["imageCollection", "opt_linkedBands", "opt_linkedProperties", "opt_matchPropertyName"], ["opt_visParams", "opt_callback"], [], ["params", "opt_callback"], ["args"],
|
|
26857
|
+
["list"], ["number"], ["obj"], ["obj"], ["obj"], ["obj"], ["obj"], ["obj"], ["obj", "opt_isCompound"], ["string"], []];
|
|
26858
|
+
[ee.ApiFunction._call, ee.ApiFunction.lookup, ee.ApiFunction._apply, module$contents$ee$batch_Export.map.toCloudStorage, module$contents$ee$batch_Export.videoMap.toCloudStorage, module$contents$ee$batch_Export.table.toBigQuery, module$contents$ee$batch_Export.image.toCloudStorage, module$contents$ee$batch_Export.video.toCloudStorage, module$contents$ee$batch_Export.table.toFeatureView, module$contents$ee$batch_Export.video.toDrive, module$contents$ee$batch_Export.table.toDrive, module$contents$ee$batch_Export.classifier.toAsset,
|
|
26859
|
+
module$contents$ee$batch_Export.image.toDrive, module$contents$ee$batch_Export.table.toAsset, module$contents$ee$batch_Export.table.toCloudStorage, module$contents$ee$batch_Export.image.toAsset, ee.Collection.prototype.filter, ee.Collection.prototype.filterDate, ee.Collection.prototype.map, ee.Collection.prototype.iterate, ee.Collection.prototype.limit, ee.Collection.prototype.sort, ee.Collection.prototype.filterMetadata, ee.Collection.prototype.filterBounds, ee.ComputedObject.prototype.evaluate,
|
|
26860
|
+
ee.ComputedObject.prototype.getInfo, ee.ComputedObject.prototype.serialize, ee.ComputedObject.prototype.aside, ee.data.makeDownloadUrl, ee.data.authenticateViaPopup, ee.data.getAssetRoots, ee.data.listFeatures, ee.data.getAsset, ee.data.setWorkloadTag, ee.data.createAssetHome, ee.data.getInfo, ee.data.createAsset, ee.data.authenticateViaPrivateKey, ee.data.getOperation, ee.data.setDefaultWorkloadTag, ee.data.newTaskId, ee.data.computeValue, ee.data.resetWorkloadTag, ee.data.getThumbId, ee.data.updateAsset,
|
|
26861
|
+
ee.data.cancelTask, ee.data.getVideoThumbId, ee.data.getFilmstripThumbId, ee.data.getList, ee.data.createFolder, ee.data.getTaskStatus, ee.data.updateTask, ee.data.setAssetAcl, ee.data.startIngestion, ee.data.startProcessing, ee.data.listAssets, ee.data.makeThumbUrl, ee.data.renameAsset, ee.data.setAssetProperties, ee.data.authenticateViaOauth, ee.data.getMapId, ee.data.copyAsset, ee.data.deleteAsset, ee.data.getTaskList, ee.data.listBuckets, ee.data.getAssetRootQuota, ee.data.getTableDownloadId,
|
|
26862
|
+
ee.data.getFeatureViewTilesKey, ee.data.authenticate, ee.data.getTileUrl, ee.data.startTableIngestion, ee.data.makeTableDownloadUrl, ee.data.getTaskListWithLimit, ee.data.getWorkloadTag, ee.data.listOperations, ee.data.getAssetAcl, ee.data.cancelOperation, ee.data.listImages, ee.data.getDownloadId, ee.Date, ee.Deserializer.fromCloudApiJSON, ee.Deserializer.decode, ee.Deserializer.fromJSON, ee.Deserializer.decodeCloudApi, ee.Dictionary, ee.initialize, ee.call, ee.reset, ee.Algorithms, ee.InitState,
|
|
26863
|
+
ee.apply, ee.TILE_SIZE, ee.Element.prototype.set, ee.Encodable.SourceFrame, ee.Feature.prototype.getInfo, ee.Feature.prototype.getMapId, ee.Feature.prototype.getMap, ee.Feature, ee.FeatureCollection.prototype.getInfo, ee.FeatureCollection, ee.FeatureCollection.prototype.getDownloadURL, ee.FeatureCollection.prototype.getMap, ee.FeatureCollection.prototype.select, ee.FeatureCollection.prototype.getMapId, ee.Filter.bounds, ee.Filter.metadata, ee.Filter.and, ee.Filter.gt, ee.Filter.lt, ee.Filter.neq,
|
|
26864
|
+
ee.Filter.inList, ee.Filter.or, ee.Filter.lte, ee.Filter.gte, ee.Filter.prototype.not, ee.Filter.eq, ee.Filter, ee.Filter.date, ee.Function.prototype.call, ee.Function.prototype.apply, ee.Geometry.prototype.toGeoJSONString, ee.Geometry.MultiPoint, ee.Geometry.BBox, ee.Geometry.LineString, ee.Geometry.MultiPolygon, ee.Geometry.prototype.serialize, ee.Geometry, ee.Geometry.Rectangle, ee.Geometry.Polygon, ee.Geometry.Point, ee.Geometry.prototype.toGeoJSON, ee.Geometry.MultiLineString, ee.Geometry.LinearRing,
|
|
26865
|
+
ee.Image, ee.Image.rgb, ee.Image.cat, ee.Image.prototype.select, ee.Image.prototype.getInfo, ee.Image.prototype.getMapId, ee.Image.prototype.getThumbURL, ee.Image.prototype.expression, ee.Image.prototype.clip, ee.Image.prototype.getMap, ee.Image.prototype.getDownloadURL, ee.Image.prototype.rename, ee.Image.prototype.getThumbId, ee.ImageCollection.prototype.getInfo, ee.ImageCollection.prototype.select, ee.ImageCollection.prototype.getVideoThumbURL, ee.ImageCollection.prototype.getMap, ee.ImageCollection.prototype.linkCollection,
|
|
26866
|
+
ee.ImageCollection.prototype.getMapId, ee.ImageCollection.prototype.first, ee.ImageCollection.prototype.getFilmstripThumbURL, ee.ImageCollection, ee.List, ee.Number, ee.Serializer.toCloudApiJSON, ee.Serializer.toJSON, ee.Serializer.encodeCloudApi, ee.Serializer.toReadableCloudApiJSON, ee.Serializer.toReadableJSON, ee.Serializer.encodeCloudApiPretty, ee.Serializer.encode, ee.String, ee.Terrain].forEach(function(fn, i) {
|
|
26874
26867
|
fn && (exportedFnInfo[fn.toString()] = {name:orderedFnNames[i], paramNames:orderedParamLists[i]});
|
|
26875
26868
|
});
|
|
26876
26869
|
goog.global.EXPORTED_FN_INFO = exportedFnInfo;
|
package/package.json
CHANGED
package/src/apiclient.js
CHANGED
|
@@ -24,7 +24,7 @@ const {trustedResourceUrl} = goog.require('safevalues');
|
|
|
24
24
|
/** @namespace */
|
|
25
25
|
const apiclient = {};
|
|
26
26
|
|
|
27
|
-
const API_CLIENT_VERSION = '0.1.
|
|
27
|
+
const API_CLIENT_VERSION = '0.1.401';
|
|
28
28
|
|
|
29
29
|
exports.VERSION = apiVersion.VERSION;
|
|
30
30
|
exports.API_CLIENT_VERSION = API_CLIENT_VERSION;
|
|
@@ -6,6 +6,9 @@ var app = {};
|
|
|
6
6
|
|
|
7
7
|
/** Creates the UI panels. */
|
|
8
8
|
app.createPanels = function() {
|
|
9
|
+
/* The map to use for this app. */
|
|
10
|
+
app.map = new ui.Map();
|
|
11
|
+
|
|
9
12
|
/* The introduction section. */
|
|
10
13
|
app.intro = {
|
|
11
14
|
panel: ui.Panel([
|
|
@@ -54,7 +57,7 @@ app.createPanels = function() {
|
|
|
54
57
|
}),
|
|
55
58
|
// Create a button that centers the map on a given object.
|
|
56
59
|
centerButton: ui.Button('Center on map', function() {
|
|
57
|
-
|
|
60
|
+
app.map.centerObject(app.map.layers().get(0).get('eeObject'));
|
|
58
61
|
})
|
|
59
62
|
};
|
|
60
63
|
|
|
@@ -161,7 +164,7 @@ app.createHelpers = function() {
|
|
|
161
164
|
|
|
162
165
|
// Filter bounds to the map if the checkbox is marked.
|
|
163
166
|
if (app.filters.mapCenter.getValue()) {
|
|
164
|
-
filtered = filtered.filterBounds(
|
|
167
|
+
filtered = filtered.filterBounds(app.map.getCenter());
|
|
165
168
|
}
|
|
166
169
|
|
|
167
170
|
// Set filter variables.
|
|
@@ -188,14 +191,14 @@ app.createHelpers = function() {
|
|
|
188
191
|
|
|
189
192
|
/** Refreshes the current map layer based on the UI widget states. */
|
|
190
193
|
app.refreshMapLayer = function() {
|
|
191
|
-
|
|
194
|
+
app.map.clear();
|
|
192
195
|
var imageId = app.picker.select.getValue();
|
|
193
196
|
if (imageId) {
|
|
194
197
|
// If an image id is found, create an image.
|
|
195
198
|
var image = ee.Image(app.COLLECTION_ID + '/' + imageId);
|
|
196
199
|
// Add the image to the map with the corresponding visualization options.
|
|
197
200
|
var visOption = app.VIS_OPTIONS[app.vis.select.getValue()];
|
|
198
|
-
|
|
201
|
+
app.map.addLayer(image, visOption.visParams, imageId);
|
|
199
202
|
}
|
|
200
203
|
};
|
|
201
204
|
};
|
|
@@ -244,8 +247,9 @@ app.boot = function() {
|
|
|
244
247
|
],
|
|
245
248
|
style: {width: '320px', padding: '8px'}
|
|
246
249
|
});
|
|
247
|
-
|
|
248
|
-
ui.root.
|
|
250
|
+
app.map.setCenter(-97, 26, 9);
|
|
251
|
+
ui.root.clear();
|
|
252
|
+
ui.root.widgets().add(ui.SplitPanel(main, app.map));
|
|
249
253
|
app.applyFilters();
|
|
250
254
|
};
|
|
251
255
|
|
|
@@ -20,8 +20,10 @@ const EarthEngineTileSource = class extends AbstractTileSource {
|
|
|
20
20
|
* tiles.
|
|
21
21
|
* @param {data.Profiler=} opt_profiler The profiler to send map tile
|
|
22
22
|
* calculation cost to, if any.
|
|
23
|
+
* @param {number=} opt_parallelism The number of map tiles to fetch
|
|
24
|
+
* concurrently.
|
|
23
25
|
*/
|
|
24
|
-
constructor(mapId, opt_profiler) {
|
|
26
|
+
constructor(mapId, opt_profiler, opt_parallelism) {
|
|
25
27
|
super();
|
|
26
28
|
|
|
27
29
|
/** @const @private {!data.RawMapId} The EE map ID for fetching tiles. */
|
|
@@ -31,8 +33,12 @@ const EarthEngineTileSource = class extends AbstractTileSource {
|
|
|
31
33
|
* Map tile calculation cost will be sent to this profiler, if its enabled
|
|
32
34
|
* flag is set.
|
|
33
35
|
* @private {?data.Profiler}
|
|
36
|
+
* @const
|
|
34
37
|
*/
|
|
35
38
|
this.profiler_ = opt_profiler || null;
|
|
39
|
+
|
|
40
|
+
this.token_count_ =
|
|
41
|
+
opt_parallelism || EarthEngineTileSource.DEFAULT_TOKEN_COUNT_;
|
|
36
42
|
}
|
|
37
43
|
|
|
38
44
|
/** @override */
|
|
@@ -65,9 +71,10 @@ const EarthEngineTileSource = class extends AbstractTileSource {
|
|
|
65
71
|
tile.sourceUrl = this.getTileUrl_(tile.coord, tile.zoom);
|
|
66
72
|
|
|
67
73
|
// When a request token is available, load the tile.
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
74
|
+
const handleAvailableToken = (token) => {
|
|
75
|
+
this.handleAvailableToken_(tile, token);
|
|
76
|
+
};
|
|
77
|
+
const tokenPool = this.getGlobalTokenPool_();
|
|
71
78
|
tokenPool.getObject(handleAvailableToken, opt_priority);
|
|
72
79
|
}
|
|
73
80
|
|
|
@@ -83,7 +90,7 @@ const EarthEngineTileSource = class extends AbstractTileSource {
|
|
|
83
90
|
* @private
|
|
84
91
|
*/
|
|
85
92
|
handleAvailableToken_(tile, token) {
|
|
86
|
-
|
|
93
|
+
const tokenPool = this.getGlobalTokenPool_();
|
|
87
94
|
|
|
88
95
|
// Exit early if the tile was aborted (e.g. because the layer was hidden or
|
|
89
96
|
// this tile was panned out of view).
|
|
@@ -122,10 +129,10 @@ const EarthEngineTileSource = class extends AbstractTileSource {
|
|
|
122
129
|
* @return {!PriorityPool} The global EE tile request token pool.
|
|
123
130
|
* @private
|
|
124
131
|
*/
|
|
125
|
-
|
|
132
|
+
getGlobalTokenPool_() {
|
|
126
133
|
if (!EarthEngineTileSource.TOKEN_POOL_) {
|
|
127
134
|
EarthEngineTileSource.TOKEN_POOL_ =
|
|
128
|
-
new PriorityPool(0,
|
|
135
|
+
new PriorityPool(0, this.token_count_);
|
|
129
136
|
}
|
|
130
137
|
return EarthEngineTileSource.TOKEN_POOL_;
|
|
131
138
|
}
|
|
@@ -135,7 +142,11 @@ goog.exportSymbol('ee.layers.EarthEngineTileSource', EarthEngineTileSource);
|
|
|
135
142
|
/** @private {?PriorityPool} The global EE tile token pool. */
|
|
136
143
|
EarthEngineTileSource.TOKEN_POOL_ = null;
|
|
137
144
|
|
|
138
|
-
/**
|
|
139
|
-
|
|
145
|
+
/**
|
|
146
|
+
* @private {number}
|
|
147
|
+
* @const
|
|
148
|
+
* The default global count of outstanding EE tile requests.
|
|
149
|
+
*/
|
|
150
|
+
EarthEngineTileSource.DEFAULT_TOKEN_COUNT_ = 4;
|
|
140
151
|
|
|
141
152
|
exports = EarthEngineTileSource;
|