Parses layer configurations.
Use service name "map-config-api.LayerConfigParser" to inject an instance of this class.
"map-config-api.LayerConfigParser"
Parses array of layer configurations.
An array of configuration items.
A promise which resolves to an array of layer instances.
configParser.parse([{ "visible": true, "url": "http://water.discomap.eea.europa.eu/arcgis/rest/services/BathingWater/BathingWater_Dyna_WM/MapServer", "type": "AGS_DYNAMIC", "sublayers": ["*"]}]).then((layers) => { // layers[0] is instance of esri/layers/MapImageLayer}); Copy
configParser.parse([{ "visible": true, "url": "http://water.discomap.eea.europa.eu/arcgis/rest/services/BathingWater/BathingWater_Dyna_WM/MapServer", "type": "AGS_DYNAMIC", "sublayers": ["*"]}]).then((layers) => { // layers[0] is instance of esri/layers/MapImageLayer});
Parses layer configurations.
Use service name
"map-config-api.LayerConfigParser"
to inject an instance of this class.