EOX GitLab Instance

Skip to content
Snippets Groups Projects
Commit 5912f06f authored by Lubomir Dolezal's avatar Lubomir Dolezal
Browse files

use productid instead of coverageid for wps display

along with eoxc update
fixes #28
parent 6a41f329
No related branches found
No related tags found
No related merge requests found
Pipeline #27593 passed
......@@ -100,7 +100,6 @@ const WPSModalView = ModalView.extend({
time = [time, time];
}
const layerModel = searchModel.get('layerModel');
const displayParams = layerModel.get('detailsDisplay') || layerModel.get('display');
this.mapModel.set('time', time);
this.mapView = new OpenLayersMapView({
mapModel: this.mapModel,
......@@ -145,10 +144,13 @@ const WPSModalView = ModalView.extend({
)) !== -1;
this.$('.is-selected').prop('checked', isSelectedForDownload);
this.$('.is-selected').parent().toggle(!!isRecordDownloadable(layerModel, recordModel));
// because products were flattened to coverages, but here we can need original product ID for visualization
const modelCopyForDisplay = $.extend(true, {}, recordModel);
modelCopyForDisplay.attributes.id = modelCopyForDisplay.attributes.itemID;
this.showChildView('layer-options', new LayerOptionsCoreView({
model: layerModel,
useDetailsDisplay: true,
recordModel,
recordModel: modelCopyForDisplay,
}));
},
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment