dictionary - Want ability to save and load the ESRI map in my Application -


we developing app. user can draw object on map , want save location , map extent drawn graphics on our server using serialize json representation of state. , when user come afterward clicking location item want re-render same state last graphics had drawn on using same serialize json object server. how achieve feature in arcgis javascript api. need write our own feature layer if yes how it?

typically use feature service store , serve data (graphics). can define , publish feature service either using local arcgis server installation, or in cloud on arcgis online.

once have feature service published, connect using arcgis api javascript (jsapi) featurelayer. see of editing samples idea of different ways can use featurelayer , other modules jsapi manage data in feature service.

you can (optionally) create web map references feature layer defines other map properties initial extent, basemap, etc , have app load web map.

as far persisting other parts of map state (extent, visible layers, basemap, etc), jsapi doesn't include way serialize things. depending on how complex map is, might able serialize bits of state care own custom json format , save local storage.

i avoid trying serialize aspects of map's state. more complex sounds. @ v 4.0 jsapi supposed offer capability serialize map object web map json format can uploaded online/portal. if need now, can try , use cereal starting point.


Comments

Popular posts from this blog

qt - Using float or double for own QML classes -

Create Outlook appointment via C# .Net -

ios - Swift Array Resetting Itself -