Skip to content

Commit

Permalink
Fix loading data source when table type has been changed
Browse files Browse the repository at this point in the history
  • Loading branch information
Son-HNguyen committed Jul 27, 2020
1 parent c2d9cd0 commit 670c4c5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions 3dwebclient/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -1202,7 +1202,7 @@ function getDataSourceControllerOptions(layer) {
// type: "",
// provider: "",
uri: dataSourceUri,
tableType: addLayerViewModel.tableType,
tableType: layer.tableType,
thirdPartyHandler: {
type: "Cesium",
handler: layer ? layer._citydbKmlDataSource : undefined
Expand All @@ -1211,7 +1211,7 @@ function getDataSourceControllerOptions(layer) {
// apiKey: addLayerViewModel.googleSheetsApiKey,
// clientId: addLayerViewModel.googleSheetsClientId
clientId: googleClientId ? googleClientId : "",
proxyPrefix: addLayerViewModel.layerProxy ? CitydbUtil.getProxyPrefix(dataSourceUri) : ""
proxyPrefix: layer.layerProxy ? CitydbUtil.getProxyPrefix(dataSourceUri) : ""
};
return options;
}
Expand Down

0 comments on commit 670c4c5

Please sign in to comment.