-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmaptour-config.js
203 lines (181 loc) · 6.56 KB
/
maptour-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
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
APPCFG = {
//
// UI
//
// Enable embed mode: disable header on desktop
// Can also be set through url parameter ?embed
EMBED: false,
// Header Logo
// HEADER_LOGO_URL: "https://www.chesterfield.mo.us/images/chesterfield-logo-1.png",
HEADER_LOGO_URL: "http://missioncity.maps.arcgis.com/sharing/rest/content/items/d248dca821804cf6a545b4e590b1a092/data",
HEADER_LOGO_TARGET: "https://www.chesterfield.mo.us/test-active-projects.html",
// Header top right link
HEADER_LINK_TEXT: "City Of Chesterfield",
HEADER_LINK_URL: "https://www.chesterfield.mo.us/",
// Control display of Facebook and Twitter links
HEADER_SOCIAL: {
facebook: true,
twitter: true,
bitly: {
enable: true,
login: "esristorymaps",
key: "R_14fc9f92e48f7c78c21db32bd01f7014"
}
},
// Header, Picture Panel and Carousel colors
COLORS: ["#444", "#B4B4B4", "#E5E5E5"],
// Map popup colors
POPUP_BACKGROUND_COLOR: "#444444",
POPUP_BORDER_COLOR: "#444444",
POPUP_ARROW_COLOR: "#444444",
// Add a 'zoom on my location' button under the +/home/- buttons
// For example this is not supported in IE 8
DISPLAY_LOCATE_BUTTON: false,
MINIMUM_MAP_WIDTH: 450,
TIMEOUT_VIEWER_LOAD: 12000,
TIMEOUT_VIEWER_REQUEST: 8000,
TIMEOUT_BUILDER_REQUEST: 20000,
//
// DATA
//
// Case insensitive prioritized list of fields name to be used
FIELDS_CANDIDATE: {
objectid: ['__objectid', 'objectid', 'id', 'fid'],
description: ['Description', 'snippet', 'comment'],
name: ['name', 'title', 'name-short', 'name-long', 'proj_name'],
color: ['icon_color', 'color', 'style'],
pic_url: ['pic_url', 'url', 'pic', 'picture'],
thumb_url: ['thumb_url', 'thumb', 'thumbnail'],
is_video: ['is_video', 'video', 'isVideo']
},
// Maximum number of points in the tour
// If not using the USE_STATIC_ICON option, markers have to be numbered from 1 to that value
MAX_ALLOWED_POINTS: 99,
//
// MAP MARKERS
//
// Enable the use of static icons for map markers
// The desktop carousel and mobile UI won't be numbered
USE_STATIC_ICON: {
enabled: false,
// The path can be relative or absolute
url: 'resources/markers/StaticIcon1.png',
// If width and height are defined here, markers won't have hover or selected effect
// To keep those effects, comment the following line and the value from ICON_CFG will be used
width: 24,
height: 24
},
// Ordered list of pin configuration (has to be lower case)
PIN_CFG: {
r: {
iconPath: 'resources/markers/red/NumberIcon',
// A css class that define the color to be used for the Desktop carousel and builder organize popup
cssClass: 'number-red'
},
b: {
iconPath: 'resources/markers/blue/NumberIconb',
cssClass: 'number-blue'
},
g: {
iconPath: 'resources/markers/green/NumberIcong',
cssClass: 'number-green'
},
p: {
iconPath: 'resources/markers/purple/IconPurple',
cssClass: 'number-purple'
}
},
// Default color
PIN_DEFAULT_CFG: 'p',
// Pin states
ICON_CFG: {
normal: {
width: 22,
height: 28,
offsetX: 3,
offsetY: 8,
// Normal state has to define the clip information for mobile UI (carousel, list and picture view)
clipRules: "clip: rect(0px, 22px, 22px, 0px); left: 13px; top: 13px; height:40px; width: 32px;"
},
hover: {
width: 24,
height: 30,
offsetX: 3,
offsetY: 8
},
selected: {
width: 32,
height: 40,
offsetX: 3,
offsetY: 11
}
},
//
// Builder
//
HELP_URL: "http://links.esri.com/storymaps/map_tour_template",
HELP_URL_PORTAL: "#/Story_Map_Tour/0193000000w0000000/",
// Control the authorized data source (for initialization and import screen)
AUTHORIZED_IMPORT_SOURCE: {
// featureService is set to false in the app when the Map Tour is hosted
// on a Portal for ArcGIS instance 10.2 as that feature isn't supported yet
featureService: true,
flickr: true,
facebook: true,
picasa: true,
youtube: true
},
// Online photo sharing services connection parameters
FLICKR_API_KEY: "750b36a2ac65a72e03cf9cef06d79f45",
// The Facebook ID is only valid on arcgis.com domain
// If used on another domain, user will have an error in the Facebook popup after login
// To use Facebook import on Portal for ArcGIS, create your own ID at https://developers.facebook.com/
// or set AUTHORIZED_IMPORT_SOURCE.facebook to false
FACEBOOK_APP_ID: "471023926309627",
// This Youtube key is valid for application running on arcgis.com and esri.com domains
// If the application is deployed on Portal for ArcGIS or your own server, the Youtube api call
// won't be perfomed until you set the following flag and provide your own key
YOUTUBE_DISABLE_ON_PORTAL: true,
YOUTUBE_API_KEY: "AIzaSyDevTFP16nz6sA-akiOVi6wWXiplJnQ4qw",
COLOR_SCHEMES: [
// COLORS is added as the first item at runtime
{name: "Black", headerColor: "#000", middleColor: "#B4B4B4", footerColor: "#E5E5E5"},
{name: "Blue", headerColor: "#0e3867", middleColor: "#5d6f89", footerColor: "#9096a9"},
{name: "Green", headerColor: "#1a3606", middleColor: "#737c6c", footerColor: "#a8b09e"}
],
WEBAPP_KEYWORD_GENERIC: ["JavaScript", "Map", "Mapping Site", "Online Map", "Ready To Use", "selfConfigured", "Web Map"],
WEBAPP_KEYWORD_APP: ["Story Map", "Story Maps", "Map Tour", "MapTour"],
//
// Portal configuration
//
// Optional array of servers that will leverage CORS (for development or specific cross domain deployment)
CORS_SERVER: [],
// Optional array of proxy rules
PROXY_RULES: [
/*{
urlPrefix: "http://services.arcgis.com/",
proxyUrl: "http://myserver.domain.com/DotNet/proxy.ash"
}*/
],
BING_MAPS_KEY: "",
HELPER_SERVICES: {
geometry: {
//url: location.protocol + "//utility.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer"
},
geocode: [
/*
{
url: location.protocol + "//geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer",
name: "My Geocoder"
}
*/
]
},
// Edit those to set a custom sharing or proxy URL
// You have to edit those only if your webmap is deployed on Portal for ArcGIS instance and if you are not deploying the template on the Portal webserver
// If you are using ArcGIS Online or deploying the template on a Portal instance, you don't have to edit those URL
DEFAULT_SHARING_URL: "//www.arcgis.com/sharing/content/items",
//DEFAULT_SHARING_URL: "//portal.internal.com/arcgis/sharing/content/items",
DEFAULT_PROXY_URL: "//www.arcgis.com/sharing/proxy"
//DEFAULT_PROXY_URL: "//portal.internal.com/arcgis/sharing/proxy"
};