Edit: the idea below should be extended to a robust and comprehensive compatibility check: does the selected webmap passes several checks so we're sure the webmap can be used for Veldwerk 2.0?
In vCalls there's a function which tries to identify the layer that holds the question. Currently it's embedded in vCalls.duplicateQuestions().
What would be best practice to make this function reusable in other vCalls and main.js?
Edit: the idea below should be extended to a robust and comprehensive compatibility check: does the selected webmap passes several checks so we're sure the webmap can be used for Veldwerk 2.0?
In vCalls there's a function which tries to identify the layer that holds the question. Currently it's embedded in vCalls.duplicateQuestions(). What would be best practice to make this function reusable in other vCalls and main.js?
itemUrl = portalUrl + "/sharing/rest/content/items/" + mastermapid+"/data"; var itemRequestItem = esriRequest({ url: itemUrl, content: { f: "json"}, handleAs: "json" });