Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in
Toggle navigation
Menu
Open sidebar
lgl
SmartVillages2
Commits
2d19a90f
Commit
2d19a90f
authored
Nov 26, 2025
by
Matthias Betz
Browse files
Merge branch 'dev' of transfer.hft-stuttgart.de:lgl/smartvillages2 into dev
parents
51717470
a0d59dee
Changes
2
Show whitespace changes
Inline
Side-by-side
src/index.js
View file @
2d19a90f
...
@@ -20,7 +20,7 @@ import { mapVersion, name, version } from '../package.json';
...
@@ -20,7 +20,7 @@ import { mapVersion, name, version } from '../package.json';
import
BIMOptions
,
{
bimOptionsId
}
from
'
./upload.vue
'
;
import
BIMOptions
,
{
bimOptionsId
}
from
'
./upload.vue
'
;
import
objectList
,
{
loadCatalogModel
,
objectListId
}
from
'
./objectList.vue
'
;
import
objectList
,
{
loadCatalogModel
,
objectListId
}
from
'
./objectList.vue
'
;
import
scaleControl
,
{
scaleControlId
}
from
'
./scaleControl.vue
'
;
import
scaleControl
,
{
scaleControlId
}
from
'
./scaleControl.vue
'
;
import
ifcIconSvg
from
'
@
icon.js
'
;
import
ifcIconSvg
from
'
./
icon.js
'
;
let
model
;
let
model
;
let
conditions
=
[[
true
,
true
]];
let
conditions
=
[[
true
,
true
]];
...
@@ -485,6 +485,7 @@ export default function smartVillagesPlugin(config, baseUrl) {
...
@@ -485,6 +485,7 @@ export default function smartVillagesPlugin(config, baseUrl) {
const
content
=
readerEvent
.
target
.
result
;
const
content
=
readerEvent
.
target
.
result
;
const
objects
=
JSON
.
parse
(
content
);
const
objects
=
JSON
.
parse
(
content
);
const
vcMap
=
app
.
maps
.
activeMap
;
const
vcMap
=
app
.
maps
.
activeMap
;
let
missingModels
=
[];
for
(
const
loadingObject
of
objects
.
placedObjects
)
{
for
(
const
loadingObject
of
objects
.
placedObjects
)
{
let
objectUrl
;
let
objectUrl
;
for
(
const
loadedObject
of
pluginState
.
objects
)
{
for
(
const
loadedObject
of
pluginState
.
objects
)
{
...
@@ -557,7 +558,18 @@ export default function smartVillagesPlugin(config, baseUrl) {
...
@@ -557,7 +558,18 @@ export default function smartVillagesPlugin(config, baseUrl) {
name
:
loadingObject
.
name
,
name
:
loadingObject
.
name
,
});
});
}
}
if
(
missingModels
.
length
>
0
)
{
let
objects
=
''
;
for
(
const
objectName
of
missingModels
)
{
objects
+=
'
'
+
objectName
+
'
,
'
;
}
objects
=
objects
.
substring
(
1
,
objects
.
length
-
1
);
app
.
notifier
.
add
({
type
:
NotificationType
.
ERROR
,
message
:
"
Konfiguration konnte nicht vollständig geladen werden. Folgende Modelle fehlen in der Objektliste:
"
+
objects
,
});
window
.
alert
(
"
Konfiguration konnte nicht vollständig geladen werden. Folgende Modelle fehlen in der Objektliste:
\n
"
+
objects
);
}
for
(
const
objectToHide
of
objects
.
hiddenObjects
)
{
for
(
const
objectToHide
of
objects
.
hiddenObjects
)
{
hidingFeatures
.
push
({
hidingFeatures
.
push
({
id
:
objectToHide
,
id
:
objectToHide
,
...
...
src/objectList.vue
View file @
2d19a90f
...
@@ -2,8 +2,8 @@
...
@@ -2,8 +2,8 @@
<v-sheet>
<v-sheet>
<VcsFormSection
heading=
"Objektbibliothek"
expandable
>
<VcsFormSection
heading=
"Objektbibliothek"
expandable
>
<template
#help
>
<template
#help
>
<p>
Objektbibliothek:
</p>
<p>
Die
Objektbibliothek:
</p>
<span>
Die Objektbibliothek.
</span>
<span>
Die Objektbibliothek
mit oft verwendeten Objekten zur freien Verwendung
.
</span>
</
template
>
</
template
>
<
template
#default
>
<
template
#default
>
<v-expansion-panels
multiple
>
<v-expansion-panels
multiple
>
...
@@ -161,6 +161,7 @@ function addModelToObjectList(name, url, hasGeolocation) {
...
@@ -161,6 +161,7 @@ function addModelToObjectList(name, url, hasGeolocation) {
}
}
async
function
loadCatalogsFromConfig
(
config
)
{
async
function
loadCatalogsFromConfig
(
config
)
{
objLib
.
value
=
{};
const
configJson
=
JSON
.
parse
(
JSON
.
stringify
(
config
));
const
configJson
=
JSON
.
parse
(
JSON
.
stringify
(
config
));
const
catalogues
=
Object
.
values
(
configJson
.
objectCatalogues
);
const
catalogues
=
Object
.
values
(
configJson
.
objectCatalogues
);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment