Convert map til WebMap?

2375
2
11-14-2012 04:40 AM
Joachim_EckboJuell
New Contributor III
I'm creating a JS web application where the map is populated from a WebMap on AGOL. The user can do changes to the map (graphics, layers etc.). And then I would like to upload the map to AGOL again (using the Portal REST API).

How can I create a valid WebMap-json from the map? The only place I can see that has the functionallity, is inside the PrintTask. I'm hoping for a better approach than hijacking the print-request.

Thanks.
0 Kudos
2 Replies
Joachim_EckboJuell
New Contributor III
Not possible?

Then I will have to go for the internal, undocumented method:
esri.tasks.PrintTask._getPrintDefinition(map);


And then add the baseMap-parameter manually.
OlaKjølstad
New Contributor

Mr. Eckbert Hjuell!

You would'nt know how to do the same for the extent property and then send the WebMap to the PrintTask? Seems to almost work, but wmts-tiled layers lags behind.

Looking forward to your reply!

0 Kudos