Select to view content in your preferred language

How to implement functionality similar to "saving file in .mxd format" in web application using arcgis api for javascript?

4958
12
07-15-2014 02:54 AM
GauriDeshmukh
Deactivated User

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. 

12 Replies
GauriDeshmukh
Deactivated User

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.

0 Kudos
AkshayHarshe
Esri Contributor

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.

Thanks,
Akshay Harshe
GauriDeshmukh
Deactivated User

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.

0 Kudos