We might not want to depend on splitting an incoming string for ui components because UI doesn't support loading all widgets (components) by string - just zoom, compass
and attribution
. Furthermore, the location e.g. top-right
of the ui component should also be passed in so I think we need to re-think this structure.
Here's how I handle it in config.json and and use main.js to set up the UI.
{
"appid": "",
"group": "",
"title": "",
"subtitle": "",
"about": "",
"webmap": "de5fe9b1be9b43a9aa195164438b557f",
"webscene": "",
"uiComponents": {
"zoom": {
"visible": true,
"position": "top-left"
},
"attribution": {
"visible": true,
"position": "top-left"
},
"search": {
"visible": true,
"position": "custom"
}
},
...