- parse model_point_of_contact instead of model_owner

- define model id as Model_id in url (not modelid)
- npm updates
This commit is contained in:
Arno Kaimbacher 2021-08-03 15:53:26 +02:00
parent c386a1245b
commit da1c1eae9e
5 changed files with 624 additions and 698 deletions

View File

@ -16,7 +16,7 @@
"request": "launch",
"name": "Launch Chrome against localhost",
// "port": 9222,
"url": "http://localhost:8080?modelid=20",
"url": "http://localhost:8080?model_id=20",
"webRoot": "${workspaceFolder}",
"breakOnLoad": true,
"runtimeExecutable": "C:/ProgramData/scoop/apps/googlechrome/current/chrome.exe",

1308
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -25,7 +25,7 @@
"@babel/preset-typescript": "^7.13.0",
"babel-loader": "^8.2.1",
"concurrently": "^6.0.0",
"css-loader": "^5.0.1",
"css-loader": "^6.2.0",
"dotenv": "^10.0.0",
"file-loader": "^6.2.0",
"img-loader": "^4.0.0",

View File

@ -112,7 +112,7 @@ class Map extends OrbitControls {
map._initControls();
map.title = modelData.model.model_name;
map.contact = modelData.model.model_owner;
map.contact = modelData.model.model_point_of_contact;
return map;
}

View File

@ -182,9 +182,9 @@ class Application {
const queryString = window.location.search;
const urlParams = new URLSearchParams(queryString);
let modelid = 20;
let serviceUrl = 'https://geusegdi01.geus.dk/meta3d/rpc/model_meta_all?modelid=';
if (urlParams.has('modelid')) {
modelid = urlParams.get('modelid');
let serviceUrl = 'https://geusegdi01.geus.dk/meta3d/rpc/model_meta_all?model_id=';
if (urlParams.has('model_id')) {
modelid = urlParams.get('model_id');
}
if (SERVICE_URL != "") {
serviceUrl = SERVICE_URL;