AnsweredAssumed Answered

Can we use json format data in "ArcGISTiledMapServiceLayer" constructor???

Question asked by ndv046 on Oct 7, 2015

I want to add layer data from my json data can it posible to initialize tileLayer with my json data. And also layerUrl as Json Data????

var tileLayer = new ArcGISTiledMapServiceLayer(JSON DATA);

var tileLayer = new ArcGISTiledMapServiceLayer("http://tiles.arcgis.com/tiles/nzS0F0zdNLvs7nc8/arcgis/rest/services/US_Counties_basemap/MapServer ");

      map.addLayer(tileLayer);

 

 

      var layerUrl ="http://services.arcgis.com/P3ePLMYs2RVChkJx/arcgis/rest/services/USA_Counties_Generalized/FeatureServer/0";

Outcomes