-
-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathwab-addlayer.js
61 lines (53 loc) · 1.58 KB
/
wab-addlayer.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
define([
'esri/config'
], function (esriConfig) {
// url to your proxy page, must be on same machine hosting you app. See proxy folder for readme.
esriConfig.defaults.io.proxyUrl = '/proxy/proxy.ashx';
return {
isDebug: true,
mapOptions: {
basemap: 'topo',
center: [35, 30],
zoom: 3,
sliderStyle: 'small'
},
titles: {
header: 'Add Layer WAB Widget',
subHeader: 'This is an example of using Web App Builder widgets with CMV',
pageTitle: 'Add Layer WAB Widget'
},
panes: {
left: {
splitter: true,
style: 'width:380px;'
}
},
collapseButtonsPane: 'center', //center or outer
operationalLayers: [],
widgets: {
widget: {
include: true,
id: 'widget',
type: 'titlePane',
position: 0,
title: 'Add Layer',
iconClass: 'fas fa-plus',
canFloat: true,
resizable: true,
open: true,
path: 'jimu/BaseWidgetPanel',
options: {
widgetManager: true,
config: {
widgets: [
{
id: 'WABWidget',
uri: 'widgets/AddLayer/Widget'
}
]
}
}
}
}
};
});