Hi,
I try to figure out how to share a named trace configuration in order to use it through ArcGIS Enterprise.
What I have done so far :
- share a UN service to ArcGIS Entreprise 10.9
- create a webmap in Pro that uses the UN services
- add trace configurations to the map and enable sharing option
Now they are properly listed in my UN properties :
- share the webmap with Portal
Now I want to use this trace with the un-js-api-demo from https://github.com/hussein-nasser/un-js-api-demo
- connect the html exemple to the portal and webmap ItemID
- the authored traces are listed
- when tracing after adding a starting point :
{"success":false,"error":{"extendedCode":-2147208597,"message":"Un paramètre requis est absent du fichier JSON.","details":[]}}
--> parameter missing from the JSON file
Any idea ? Is the trace JSON configuration saved within the webmap JSON ?
Solved! Go to Solution.
I just pushed a fix for few bugs that I found, can you try again?
https://github.com/hussein-nasser/un-js-api-demo/blob/master/un-js-api-demo.html
I just pushed a fix for few bugs that I found, can you try again?
https://github.com/hussein-nasser/un-js-api-demo/blob/master/un-js-api-demo.html
Hi Hussein,
Thank you, it works with the -421.html file !
I still have a question, where is the JSON representing the trace configuration stored ? When looking at my webmap's JSON, I only see little information on the UN and Trace Configuration :
Regards
When you share a webmap with named trace configuration, the GUIDs of the trace configuration is persisted in the webmap definition along side the utility network layer. The full definition of the trace configuration can be retrieved through the UtilityNetworkServer by passing the GUID to /trace. This is so that you can alter the trace configuration without republishing the webmap and also to keep the definition of the webmap compact.
Thank you for the clarification