I have multiple map layers (right now about a dozen but that will likely stretch to several dozen) in my CMV. I have introduced several WMS services to operationalLayers that I have published to a local server. Only the "Parcels" service will show up. I have tried different combinations of several layers but I can never get more than one layer to display at a time. Does anybody know why multiple services will not display in my CMV?
This is what the section in my viewer.js looks like:
operationalLayers: [{
type: 'dynamic',
url: 'http://arcgis.mydomain.com/arcgis/rest/services/Floodplain/Floodplain/MapServer',
title: '100yr Floodplain',
options: {
id: 'Floodplain',
opacity: 1.0,
visible: true,
outFields: ['*']
},
identifyLayerInfos: {
layerIds: [0,1,2,3,4]
},
legendLayerInfos: {
layerInfo: {
hideLayers: [21]
}
},
type: 'dynamic',
url: 'http://arcgis.mydomain.com/arcgis/rest/services/Parcels/Parcels/MapServer',
title: 'NY Parcels',
options: {
id: 'Parcels',
opacity: 1.0,
visible: true,
outFields: ['*']
},
identifyLayerInfos: {
layerIds: [0,1,2,3,4]
},
legendLayerInfos: {
layerInfo: {
hideLayers: [21]
}
}
}],