Accepting webmap parameter
Accepting webmap parameter

webmap parameter is the Web map ID to be used. If absent, the app looks
for a Web map called "Position Analysis Web Map" and uses that. If that
is not found, the app creates a new Web map with that title and saves
it.

Esri/position-analysis-js