-
Notifications
You must be signed in to change notification settings - Fork 51
/
config.ts
46 lines (42 loc) · 1.45 KB
/
config.ts
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
/* This app can be configured by changing the variables
in this file.
Webscene:
- copy the webscene that I use: http://www.arcgis.com/home/item.html?id=d0580bb5df3840d384bda44b6ddeb54e
- remove/add layers with additional data in the Layers group
- remove/add basemap layers in the Basemap group
Data:
- replace the trails service url
- replace the attribute names to the ones in your service
- remove attributes if they don't make sense for your data
- Status has hard-coded values Open/Closed (whether the track is open or closed)
- filterOptions are the attributes that will be used for filtering
they can be removed in case they are not useful
Colors:
- change the colors for visualizing the trails
- for CSS colors check also the variables.scss file - selectedTrail is $orange
*/
export default {
scene: {
websceneItemId: "d0580bb5df3840d384bda44b6ddeb54e"
},
data: {
trailsServiceUrl: "https://services2.arcgis.com/cFEFS0EWrhfDeVw9/arcgis/rest/services/SwissNationalParkTrails/FeatureServer/0",
trailAttributes: {
name: "Name",
id: "RouteId",
difficulty: "Difficulty",
walktime: "Hiketime",
status: "Access",
ascent: "Ascent",
description: "Description"
},
filterOptions: {
singleChoice: ["difficulty", "status"], // have string values
range: ["walktime", "ascent"] // have numeric values
}
},
colors: {
defaultTrail: "#db5353",
selectedTrail: "#f9a352"
}
};