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
e2a1d0ef
Commit
e2a1d0ef
authored
Nov 21, 2024
by
Matthias Betz
Browse files
increase loops for hiding models for more consistency in actual hiding
parent
2e3ca2f7
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/index.js
View file @
e2a1d0ef
...
...
@@ -20,7 +20,7 @@ const hidingFeatures = [];
const
hidingListener
=
function
(
tile
)
{
let
allHidden
=
true
;
for
(
const
featureToHide
of
hidingFeatures
)
{
if
(
featureToHide
.
loops
<
3
)
{
if
(
featureToHide
.
loops
<
10
)
{
allHidden
=
false
;
const
feature
=
tile
.
content
.
getFeature
(
featureToHide
.
id
);
if
(
feature
!==
undefined
)
{
...
...
@@ -366,7 +366,7 @@ export default function smartVillagesPlugin(config, baseUrl) {
actions
.
push
({
id
:
'
delete
'
,
name
:
'
Objekt
lösch
en
'
,
name
:
'
Objekt
entfern
en
'
,
callback
()
{
vcsApp
.
maps
.
activeMap
.
getEntities
().
remove
(
model
);
removePlacedModel
(
model
);
...
...
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