I need to implement a functionality which will save all layers added to map,its all display information like current extent, symbology and queried features if any etc. Its similar to saving an mxd(map document) file in arc map. But I want save this layer details in a table in database. When a user will open this saved file the layer should get added to map with all its saved properties.
yes i can use, from the response i converted json data to object and added layers(dynamica map service layer) to map.
But I am not able to add graphics layers whose json response is in the form of feature collection.
Hi Gauri,
Have a look at this sample regarding Feature Collections if you haven't already have.
If your response is in Feature Collection then you can create a feature layer from that. Not sure if you can make graphics layer out of that!
See if this helps in any way.
Thanks,
Akshay H.
Hello Akshay, I tried to add my feature collection to feature layer as per this sample,but the feature layer is not getting displayed on a map, may be I am missing something. It would be better if i use graphics layer.