forked from Open-EO/openeo-web-editor
-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.js
82 lines (67 loc) · 2.05 KB
/
config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
export default {
// Set this to connect to a back-end automatically when opening the Web Editor,
// so you could set this to https://example.com and then the Web Editor connects
// to the corresponding back-end automatically.
serverUrl: '',
// The name of the service
serviceName: 'openEO',
// The name of the app
appName: 'Web Editor',
// Skip login and automatically load up the "discovery mode"
skipLogin: false,
// Request the user location to default the map view on where the user is
requestUserLocation: true,
// A message shown on the login page
loginMessage: '',
// The logo to show
logo: './logo.png',
// Defaults for notifications
snotifyDefaults: {
timeout: 10000,
titleMaxLength: 30,
bodyMaxLength: 120,
showProgressBar: true,
closeOnClick: true,
pauseOnHover: true
},
// List of supported web map services (all lower-cased)
supportedMapServices: [
'xyz',
'wmts'
],
// List of supported batch job sharing services
supportedBatchJobSharingServices: [
'CopyUrl',
'TwitterShare'
],
// List of supported web service sharing services
supportedWebServiceSharingServices: [
'CopyUrl',
'TwitterShare'
],
// Configure the (base)maps
basemaps: [
{
// Title for the basemap
title: "OpenStreetMap",
// Templated URI for the XYZ basemap.
url: 'https://{a-c}.tile.openstreetmap.org/{z}/{x}/{y}.png',
// Attributon for the basemap. HTML is allowed.
attributions: '© <a href="https://www.openstreetmap.org/copyright" target="_blank">OpenStreetMap</a> contributors.',
// Maximum zoom level
maxZoom: 19
}
],
// Additional process namespaces to load by default
processNamespaces: [],
// Key is the OIDC provider id, value is the client ID
oidcClientIds: {
'egi': 'openeo-platform-default-client',
'egi-dev': 'dev-edc-openeo-web-editor'
},
// Show a warning if HTTP is used instead of HTTPS
showHttpWarning: true,
// refresh interval for jobs/user data/services etc. in minutes - doesn't apply to logs.
// It's recommended to use a value between 1 and 5 minutes.
dataRefreshInterval: 2
};