I have a situation where I want to add an Esri created demograhics layer to my map via jScript and I am not sure on how best to do this or which objects to use (Feature layer, ArcGISDynamicMapServiceLayer or an other).
I can get the "base layer" to load using the following code
var demographicsLayerURL = "https://demographics5.arcgis.com/arcgis/rest/services/USA_Demographics_and_Boundaries_2015/MapServer";
var demographicsLayer = new ArcGISDynamicMapServiceLayer(demographicsLayerURL);
This works to load the "base layer" but what I am trying to do is load it as a layer showing "Unemployment figures". When I look at the URL for the Unemployment figures it looks like this
In effect I simply want to add the below layer to my map in jScript.
Apologies if this is not clear.