- 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",
|
||||
"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
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-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",
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user