AnsweredAssumed Answered

I want to populate map from json data in Android, but can't find any relevant information/method to do so. Does anyone over there have any idea ?

Question asked by shailendra_rajawat on Feb 5, 2015
Latest reply on Mar 4, 2015 by lkeitht

the format of json is

 

{

"currentVersion": 10.01,

"serviceDescription": "",

"mapName": "Layers",

"description": "",

"copyrightText": "",

"layers": [

  {

   "id": 0,

   "name": "",

   "parentLayerId": -1,

   "defaultVisibility": true,

   "subLayerIds": null,

   "minScale": 0000,

   "maxScale": 0

  }

],

"tables": [],

"spatialReference": {},

"singleFusedMapCache": false,

"initialExtent": {

  "xmin": ,

  "ymin": ,

  "xmax": ,

  "ymax": ,

  "spatialReference": {}

},

"fullExtent": {

  "xmin": -1.0547305

.

.

.

.

}

 

I know we can create layer using  ArcGISDynamicMapServiceLayer(url) constructor, but i have json instead of URL.

 

iOS sdk provides this facility

AGSDynamicMapServiceLayer *dynamicLayer = [[AGSDynamicMapServiceLayer alloc] initWithJSON:mapJson];

 

so i believe it should be possible for android as well. But have no idea.. how

Outcomes