Skip to content

Commit

Permalink
Merge pull request #4005 from nasa-gibs/develop
Browse files Browse the repository at this point in the history
v3.34.0
  • Loading branch information
minniewong authored Oct 17, 2022
2 parents 5bfd3f0 + 90b8d33 commit fe713fd
Show file tree
Hide file tree
Showing 42 changed files with 286 additions and 201 deletions.
4 changes: 2 additions & 2 deletions e2e/features/image-download/layers-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ module.exports = {
},

'List layers in draw order': function(c) {
bookmark(c, startParams.concat(['l=MODIS_Terra_CorrectedReflectance_TrueColor,Reference_Features_15m,MODIS_Terra_Aerosol']));
bookmark(c, startParams.concat(['l=MODIS_Terra_CorrectedReflectance_TrueColor,MODIS_Terra_Aerosol,Reference_Features_15m']));
openImageDownloadPanel(c);
clickDownload(c);
c.expect.element('#wv-image-download-url').to.have.attribute('url')
Expand All @@ -28,7 +28,7 @@ module.exports = {
openImageDownloadPanel(c);
clickDownload(c);
c.expect.element('#wv-image-download-url').to.have.attribute('url')
.and.to.contain('LAYERS=MODIS_Terra_CorrectedReflectance_TrueColor,Reference_Features_15m,MODIS_Terra_Aerosol');
.and.to.contain('LAYERS=MODIS_Terra_CorrectedReflectance_TrueColor,MODIS_Terra_Aerosol,Reference_Features_15m');
},

'Do not include obscured layers': function(c) {
Expand Down
6 changes: 3 additions & 3 deletions e2e/features/layers/layers-sidebar-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -52,11 +52,11 @@ const groupedLayerIdOrder = [
'active-MODIS_Combined_MAIAC_L2G_AerosolOpticalDepth',
];
const ungroupedReorderdLayerIdOrder = [
'active-MODIS_Combined_Value_Added_AOD',
'active-MODIS_Combined_MAIAC_L2G_AerosolOpticalDepth',
'active-Reference_Features_15m',
'active-VIIRS_SNPP_Thermal_Anomalies_375m_All',
'active-VIIRS_NOAA20_Thermal_Anomalies_375m_All',
'active-Reference_Features_15m',
'active-MODIS_Combined_Value_Added_AOD',
'active-MODIS_Combined_MAIAC_L2G_AerosolOpticalDepth',
];

module.exports = {
Expand Down
105 changes: 60 additions & 45 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "worldview",
"version": "3.33.0",
"version": "3.34.0",
"description": "Interactive interface for browsing full-resolution, global satellite imagery",
"keywords": [
"NASA",
Expand Down Expand Up @@ -100,7 +100,7 @@
"browserstack-capabilities": "^0.7.0",
"browserstack-local": "^1.4.4",
"cheerio": "^1.0.0-rc.2",
"chromedriver": "^104.0.0",
"chromedriver": "^106.0.1",
"clean-webpack-plugin": "^4.0.0",
"cross-env": "^7.0.2",
"css-hot-loader": "^1.4.1",
Expand Down Expand Up @@ -185,7 +185,7 @@
"moment": "^2.29.4",
"moment-locales-webpack-plugin": "^1.2.0",
"node-dir": "^0.1.17",
"ol": "7.0.0",
"ol": "7.1.0",
"ol-mapbox-style": "9.1.0",
"p-queue": "^7.3.0",
"proj4": "2.6.1",
Expand Down
8 changes: 6 additions & 2 deletions tasks/upload.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const os = require('os');
const path = require('path');
const yargs = require('yargs');
const shell = require('shelljs');
const NodeSSH = require('node-ssh');
const { NodeSSH } = require('node-ssh');

const ssh = new NodeSSH();

Expand Down Expand Up @@ -109,7 +109,11 @@ if (!name) {
async function upload() {
console.log(`Uploading to ${host}`);
try {
await ssh.connect({ host, username, privateKey: key });
await ssh.connect({
host,
username,
privateKeyPath: key,
});
let cmd = `
[ -e ${root}/${name}/${worldview} ] &&
rm -rf ${root}/${name} &&
Expand Down
7 changes: 4 additions & 3 deletions web/js/components/context-menu/context-menu.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,7 @@ import { changeUnits } from '../../modules/measure/actions';
import { getFormattedCoordinates, getNormalizedCoordinate } from '../location-search/util';
import { areCoordinatesWithinExtent } from '../../modules/location-search/util';
import { CONTEXT_MENU_LOCATION, MAP_SINGLE_CLICK, MAP_CONTEXT_MENU } from '../../util/constants';
import { CRS } from '../../modules/map/constants';

const { events } = util;

Expand All @@ -25,14 +26,14 @@ function RightClickMenu(props) {
map, proj, unitOfMeasure, onToggleUnits, isCoordinateSearchActive, allMeasurements, measurementIsActive, isMobile,
} = props;
const { crs } = proj.selected;
const measurementsInProj = !!Object.keys(allMeasurements[crs]).length;
const measurementsInProj = !!(Object.keys(allMeasurements[crs]) || []).length;
const handleClick = () => (show ? setShow(false) : null);

function handleContextEvent(event) {
if (measurementIsActive) return;
event.originalEvent.preventDefault();
const coord = map.getCoordinateFromPixel(event.pixel);
const tCoord = transform(coord, crs, 'EPSG:4326');
const tCoord = transform(coord, crs, CRS.GEOGRAPHIC);
const [lon, lat] = getNormalizedCoordinate(tCoord);

if (areCoordinatesWithinExtent(proj, [lon, lat])) {
Expand Down Expand Up @@ -86,7 +87,7 @@ function RightClickMenu(props) {
};
});

const mobileStyle = isMobile && 'react-contextmenu-mobile';
const mobileStyle = isMobile ? 'react-contextmenu-mobile' : '';

return show && (
<div id="context-menu">
Expand Down
Loading

0 comments on commit fe713fd

Please sign in to comment.