Skip to content

Commit 77e8b90

Browse files
committed
Add config file and screenshot for What3Words widget
1 parent ddd321a commit 77e8b90

File tree

2 files changed

+52
-0
lines changed

2 files changed

+52
-0
lines changed

config/what3words.js

+52
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
define([
2+
'esri/config'
3+
], function (esriConfig) {
4+
5+
esriConfig.defaults.io.corsEnabledServers.push('api.what3words.com');
6+
7+
return {
8+
isDebug: false,
9+
10+
mapOptions: {
11+
basemap: 'streets',
12+
center: [-96.59179687497497, 39.09596293629694],
13+
zoom: 5,
14+
sliderStyle: 'small'
15+
},
16+
17+
titles: {
18+
header: 'CMV what3words Widget',
19+
subHeader: 'This is an example of using what3words',
20+
pageTitle: 'CMV what3words Widget'
21+
},
22+
23+
collapseButtonsPane: 'center', //center or outer
24+
25+
operationalLayers: [],
26+
27+
widgets: {
28+
growler: {
29+
include: true,
30+
id: 'growler',
31+
type: 'domNode',
32+
path: 'gis/dijit/Growler',
33+
srcNodeRef: 'growlerDijit',
34+
options: {}
35+
},
36+
what3words: {
37+
include: true,
38+
id: 'what3words',
39+
type: 'titlePane',
40+
title: 'what3words',
41+
canFloat: true,
42+
position: 0,
43+
open: true,
44+
path: 'widgets/What3Words',
45+
options: {
46+
map: true,
47+
key: '123456'
48+
}
49+
}
50+
}
51+
};
52+
});

images/what3words.jpg

221 KB
Loading

0 commit comments

Comments
 (0)