Several functions need to know which layer of the webmap contains the Questions.
If no questions layer is present, the webmap can't be used in this webmap.
Combining the statements above, we should switch to defining a global variable (preferable via localStorage or window.property) containing the ID of the layer containing the question, when a user selects a webmap. We should throw an error when the user selected a webmap that doesn't contain such a layer.
Several functions need to know which layer of the webmap contains the Questions. If no questions layer is present, the webmap can't be used in this webmap.
Combining the statements above, we should switch to defining a global variable (preferable via localStorage or window.property) containing the ID of the layer containing the question, when a user selects a webmap. We should throw an error when the user selected a webmap that doesn't contain such a layer.