AnsweredAssumed Answered

Demographic Layer question.

Question asked by dan182 on May 14, 2015
Latest reply on May 14, 2015 by timw1984

Hi

 

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);

mapresponse.addLayer(demographicsLayer);

 

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

"https://demographics5.arcgis.com/arcgis/rest/services/USA_Demographics_and_Boundaries_2015/MapServer?ts=[SOMEID]"

 

In effect I simply want to add the below layer to my map in jScript.

http://www.arcgis.com/home/item.html?id=3c7feb94f97c47929292698b3544f07e

 

Apologies if this is not clear.

 

Ta,

D

Outcomes