@google/earthengine 0.1.413 → 0.1.415

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": "0.1.413",
3
+ "version": "0.1.415",
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');
24
24
  /** @namespace */
25
25
  const apiclient = {};
26
26
 
27
- const API_CLIENT_VERSION = '0.1.413';
27
+ const API_CLIENT_VERSION = '0.1.415';
28
28
 
29
29
  exports.VERSION = apiVersion.VERSION;
30
30
  exports.API_CLIENT_VERSION = API_CLIENT_VERSION;
@@ -101,9 +101,15 @@ function updateOverlay() {
101
101
 
102
102
  // Updates the chart using the currently-selected charting function,
103
103
  function updateChart() {
104
- var chartBuilder = chartTypeToggleButton.value;
105
- var chart = chartBuilder(getSelectedCountries());
106
- resultsPanel.clear().add(chart).add(buttonPanel);
104
+ var selectionSize = getSelectedCountries().size();
105
+ selectionSize.evaluate(function(size) {
106
+ if (!size) {
107
+ return;
108
+ }
109
+ var chartBuilder = chartTypeToggleButton.value;
110
+ var chart = chartBuilder(getSelectedCountries());
111
+ resultsPanel.clear().add(chart).add(buttonPanel);
112
+ });
107
113
  }
108
114
 
109
115
  // Clears the set of selected points and resets the overlay and results