-
Notifications
You must be signed in to change notification settings - Fork 51
/
commonConfig.js
35 lines (33 loc) · 1.3 KB
/
commonConfig.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
define(
[],
function() {
var config = {
bingMapsKey:"Arrzu_Koi7htDRMIwm6kTe0Nqh8FvVdN17blcaJVTEhn87z-tIYJh2LgBNbJS4fv",
units: null,
helperServices: {
geometry:{
url: location.protocol + "//utility.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer"
},
printTask: {
url: location.protocol + "//utility.arcgisonline.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task"
},
elevationSync:{
url: location.protocol + "//elevation.arcgis.com/arcgis/rest/services/Tools/ElevationSync/GPServer"
},
geocode: [{
url: location.protocol + "//geocode.arcgis.com/arcgis/rest/services/World/GeocodeServer"
}]
},
queryForOrg: true
};
// could use a has() test to optionally populate some global
// property so that the stuff defined is in some global identifier
//
// instead, just populate a global, will need to remove the next line when
// when we remove support for loading modules with dojo.require
// which will be when we move to Dojo 2.0
commonConfig = config;
// instead of using a global, this should probably be added to some namespace...
// do the templates have a common namespace that they use?
return config;
});