diff --git a/simccs_maptool/templates/simccs_maptool/build.html b/simccs_maptool/templates/simccs_maptool/build.html index 6d20d55..f025393 100644 --- a/simccs_maptool/templates/simccs_maptool/build.html +++ b/simccs_maptool/templates/simccs_maptool/build.html @@ -155,7 +155,7 @@ //dataurl = urlprefix + datameta["url"]; datastyle = entry['style']; popupfields = entry['popup']; - addcasedata(datameta,dataurl,datastyle,popupfields); + await addcasedata(datameta,dataurl,datastyle,popupfields); } // load cost surface addcostsurface(bbox); @@ -742,11 +742,11 @@ case_id = workspacejson["case"]; //console.log(case_id); // load case first - await set_casedata(case_id) => { + await set_casedata(case_id); // load scenarios for (const entry of workspacejson["scenarios"]) { re_create_scenario(entry); - } }; + } }