Hide Table of Contents
esri/dijit/util
esri/layer/pixelFilters
esri/process
esri/support
esri/workers
Object: esri/config

require(["esri/config"], function(esriConfig) { /* code goes here */ });

Description

(Added at v3.8)
The default values for all JS API configuration options.

When coding legacy (non-AMD) style, there is no need to require the module. All methods and properties are available in the namespace. For example, esri.config and esri.config.defaults.io.useCors.

See also

Samples

Search for samples that use this class.

Properties

NameTypeSummary
defaultsObjectArcGIS JavaScript API default configurations that can be overridden programmatically.
Property Details

<Object> defaults

ArcGIS JavaScript API default configurations that can be overridden programmatically. For details, see Default API configurations.
Object Specifications:
<defaults>
<GeometryService> geometryService Optional Default: null
<Object> io Optional
property default value type
alwaysUseProxy false Boolean
corsDetection true Boolean
corsDetectionTimeout 15. See Default API Configurations. Number
corsEnabledServers See Default API Configurations. Array
httpsDomains See Default API Configurations. Array
proxyRules See Default API Configurations. Array
proxyUrl null String
timeout 60000 Number
useCors "with-credentials" String
<String> kmlService Optional Default: null
<Object> map Optional
property default value type
panDuration 350 Number
panRate 25 Number
slider See Default API Configurations Object
sliderLabel See Default API Configurations Object
zoomAnimationThrottled true Boolean
zoomDuration 500 Number
zoomRate 25 Number
zoomSymbol See Default API Configurations Object
<Object> workers Optional The AMD loader's configuration object, which is loaded with each worker. Modify the configuration to specify locations of packages to be loaded with workers or to define a feature detection. The configuration parameters for workers. See Default API Configurations.

property type description
loaderConfig Object
property type description
has Object Determines if the specified feature capabilities are supported.
paths Object Map of module id fragments to file paths.
map Object Map paths in module identifiers to different paths.
packages Object An array of objects which provide the package name and its location.
Show Modal