Skip to content

Commit 279c649

Browse files
committed
Improve app mode, v0.14.0-beta.4
1 parent 076cc33 commit 279c649

File tree

4 files changed

+12
-6
lines changed

4 files changed

+12
-6
lines changed

package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@openeo/web-editor",
3-
"version": "0.14.0-beta.3",
3+
"version": "0.14.0-beta.4",
44
"apiVersions": [
55
"1.0.0-rc.2",
66
"1.0.0",

src/Page.vue

+4-1
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,10 @@ export default {
7373
this.setCollectionPreview(Utils.param('preview-collection'));
7474
7575
const resultUrl = Utils.param('result');
76-
const resultType = Utils.param('result-type') || 'job';
76+
let resultType = 'job';
77+
if (Utils.param('app~service')) {
78+
resultType = 'service';
79+
}
7780
if (resultUrl) {
7881
this.setAppMode({
7982
resultUrl,

src/components/share/ShareEditor.vue

-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,6 @@ export default {
4343
editorUrl() {
4444
const url = new URL(window.location.href);
4545
const query = new URLSearchParams(url.search);
46-
query.set('result-type', this.type);
4746
query.set('result', this.url); // Pass canonical link, implies discover = 1
4847
if (this.type === 'service') {
4948
query.set('app~service', this.context.type);

src/components/viewer/MetadataViewer.vue

+7-3
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@
22
<div class="metadataViewer">
33
<Collection v-if="isCollection" :data="data">
44
<template #spatial-extents="p">
5-
<MapExtentViewer class="jobMap" :footprint="p.extents"></MapExtentViewer>
5+
<MapExtentViewer class="resultMap" :footprint="p.extents"></MapExtentViewer>
66
</template>
77
</Collection>
88
<Item v-else-if="isItem" :data="data">
99
<template #location="p">
10-
<MapExtentViewer class="jobMap" :footprint="p.geometry || p.bbox"></MapExtentViewer>
10+
<MapExtentViewer class="resultMap" :footprint="p.geometry || p.bbox"></MapExtentViewer>
1111
</template>
1212
</Item>
13-
<ul class="list">
13+
<ul v-else class="list">
1414
<StacAsset v-for="(asset, id) in data.assets" :key="id" :asset="asset" :id="id" :context="data" />
1515
</ul>
1616
</div>
@@ -58,4 +58,8 @@ export default {
5858
height: 98%;
5959
padding: 1%;
6060
}
61+
.resultMap {
62+
height: 300px;
63+
max-width: 600px;
64+
}
6165
</style>

0 commit comments

Comments
 (0)