Skip to content

Commit c0dcccf

Browse files
committed
Set thematic source values to default when selecting embedded
1 parent fbd4a8f commit c0dcccf

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

3dwebclient/script.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1408,6 +1408,8 @@ function thematicDataSourceAndTableTypeDropdownOnchange() {
14081408
if (thematicDataSourceDropdown.value === "Embedded") {
14091409
thematicTableTypeDropdownDiv.style.display = "none";
14101410
thematicDataUrlDiv.style = "display: none;";
1411+
addLayerViewModel.tableType = "Horizontal";
1412+
addLayerViewModel.thematicDataUrl = "";
14111413
} else if (thematicDataSourceDropdown.value === "OGCFeatureAPI") {
14121414
thematicTableTypeDropdownDiv.style.display = "none";
14131415
thematicDataUrlDiv.style.display = "";
@@ -1422,8 +1424,8 @@ function thematicDataSourceAndTableTypeDropdownOnchange() {
14221424
const selectedTableType = tableTypeDropdown.options[tableTypeDropdown.selectedIndex] == null ? ""
14231425
: tableTypeDropdown.options[tableTypeDropdown.selectedIndex].value;
14241426

1425-
addLayerViewModel["thematicDataSource"] = selectedThematicDataSource;
1426-
addLayerViewModel["tableType"] = selectedTableType;
1427+
addLayerViewModel.thematicDataSource = selectedThematicDataSource;
1428+
addLayerViewModel.tableType = selectedTableType;
14271429

14281430
// if (selectedThematicDataSource == "GoogleSheets") {
14291431
// document.getElementById("rowGoogleSheetsApiKey").style.display = "table-row";

0 commit comments

Comments
 (0)