File tree 4 files changed +12
-6
lines changed
4 files changed +12
-6
lines changed Original file line number Diff line number Diff line change 1
1
{
2
2
"name" : " @openeo/web-editor" ,
3
- "version" : " 0.14.0-beta.3 " ,
3
+ "version" : " 0.14.0-beta.4 " ,
4
4
"apiVersions" : [
5
5
" 1.0.0-rc.2" ,
6
6
" 1.0.0" ,
Original file line number Diff line number Diff line change @@ -73,7 +73,10 @@ export default {
73
73
this .setCollectionPreview (Utils .param (' preview-collection' ));
74
74
75
75
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
+ }
77
80
if (resultUrl) {
78
81
this .setAppMode ({
79
82
resultUrl,
Original file line number Diff line number Diff line change @@ -43,7 +43,6 @@ export default {
43
43
editorUrl () {
44
44
const url = new URL (window .location .href );
45
45
const query = new URLSearchParams (url .search );
46
- query .set (' result-type' , this .type );
47
46
query .set (' result' , this .url ); // Pass canonical link, implies discover = 1
48
47
if (this .type === ' service' ) {
49
48
query .set (' app~service' , this .context .type );
Original file line number Diff line number Diff line change 2
2
<div class =" metadataViewer" >
3
3
<Collection v-if =" isCollection" :data =" data" >
4
4
<template #spatial-extents =" p " >
5
- <MapExtentViewer class =" jobMap " :footprint =" p.extents" ></MapExtentViewer >
5
+ <MapExtentViewer class =" resultMap " :footprint =" p.extents" ></MapExtentViewer >
6
6
</template >
7
7
</Collection >
8
8
<Item v-else-if =" isItem" :data =" data" >
9
9
<template #location =" p " >
10
- <MapExtentViewer class =" jobMap " :footprint =" p.geometry || p.bbox" ></MapExtentViewer >
10
+ <MapExtentViewer class =" resultMap " :footprint =" p.geometry || p.bbox" ></MapExtentViewer >
11
11
</template >
12
12
</Item >
13
- <ul class =" list" >
13
+ <ul v-else class =" list" >
14
14
<StacAsset v-for =" (asset, id) in data.assets" :key =" id" :asset =" asset" :id =" id" :context =" data" />
15
15
</ul >
16
16
</div >
@@ -58,4 +58,8 @@ export default {
58
58
height : 98% ;
59
59
padding : 1% ;
60
60
}
61
+ .resultMap {
62
+ height : 300px ;
63
+ max-width : 600px ;
64
+ }
61
65
</style >
You can’t perform that action at this time.
0 commit comments