- 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:
parent
c386a1245b
commit
da1c1eae9e
|
@ -16,7 +16,7 @@
|
||||||
"request": "launch",
|
"request": "launch",
|
||||||
"name": "Launch Chrome against localhost",
|
"name": "Launch Chrome against localhost",
|
||||||
// "port": 9222,
|
// "port": 9222,
|
||||||
"url": "http://localhost:8080?modelid=20",
|
"url": "http://localhost:8080?model_id=20",
|
||||||
"webRoot": "${workspaceFolder}",
|
"webRoot": "${workspaceFolder}",
|
||||||
"breakOnLoad": true,
|
"breakOnLoad": true,
|
||||||
"runtimeExecutable": "C:/ProgramData/scoop/apps/googlechrome/current/chrome.exe",
|
"runtimeExecutable": "C:/ProgramData/scoop/apps/googlechrome/current/chrome.exe",
|
||||||
|
|
1308
package-lock.json
generated
1308
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
|
@ -25,7 +25,7 @@
|
||||||
"@babel/preset-typescript": "^7.13.0",
|
"@babel/preset-typescript": "^7.13.0",
|
||||||
"babel-loader": "^8.2.1",
|
"babel-loader": "^8.2.1",
|
||||||
"concurrently": "^6.0.0",
|
"concurrently": "^6.0.0",
|
||||||
"css-loader": "^5.0.1",
|
"css-loader": "^6.2.0",
|
||||||
"dotenv": "^10.0.0",
|
"dotenv": "^10.0.0",
|
||||||
"file-loader": "^6.2.0",
|
"file-loader": "^6.2.0",
|
||||||
"img-loader": "^4.0.0",
|
"img-loader": "^4.0.0",
|
||||||
|
|
|
@ -112,7 +112,7 @@ class Map extends OrbitControls {
|
||||||
map._initControls();
|
map._initControls();
|
||||||
|
|
||||||
map.title = modelData.model.model_name;
|
map.title = modelData.model.model_name;
|
||||||
map.contact = modelData.model.model_owner;
|
map.contact = modelData.model.model_point_of_contact;
|
||||||
return map;
|
return map;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -182,9 +182,9 @@ class Application {
|
||||||
const queryString = window.location.search;
|
const queryString = window.location.search;
|
||||||
const urlParams = new URLSearchParams(queryString);
|
const urlParams = new URLSearchParams(queryString);
|
||||||
let modelid = 20;
|
let modelid = 20;
|
||||||
let serviceUrl = 'https://geusegdi01.geus.dk/meta3d/rpc/model_meta_all?modelid=';
|
let serviceUrl = 'https://geusegdi01.geus.dk/meta3d/rpc/model_meta_all?model_id=';
|
||||||
if (urlParams.has('modelid')) {
|
if (urlParams.has('model_id')) {
|
||||||
modelid = urlParams.get('modelid');
|
modelid = urlParams.get('model_id');
|
||||||
}
|
}
|
||||||
if (SERVICE_URL != "") {
|
if (SERVICE_URL != "") {
|
||||||
serviceUrl = SERVICE_URL;
|
serviceUrl = SERVICE_URL;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user