From a17a0ed87897ca008408b296cba044cf33796707 Mon Sep 17 00:00:00 2001 From: Luis Fernando Molina Date: Fri, 1 Oct 2021 11:46:53 +0200 Subject: [PATCH] Improvement inMapMode --- Projects/Foundations/UI/Spaces/Floating-Space/UiObject.js | 7 +++++++ Projects/Governance/Schemas/App-Schema/user-profile.json | 5 ++++- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/Projects/Foundations/UI/Spaces/Floating-Space/UiObject.js b/Projects/Foundations/UI/Spaces/Floating-Space/UiObject.js index 3de121654..8ba9a4d0b 100644 --- a/Projects/Foundations/UI/Spaces/Floating-Space/UiObject.js +++ b/Projects/Foundations/UI/Spaces/Floating-Space/UiObject.js @@ -1683,6 +1683,13 @@ function newUiObject() { if (UI.projects.foundations.spaces.floatingSpace.inMapMode === true) { position = UI.projects.foundations.spaces.floatingSpace.transformPointToMap(position) + + let schemaDocument = getSchemaDocument(thisObject.payload.node) + if (schemaDocument.inMapMode !== undefined) { + if (schemaDocument.inMapMode.showNodeType === false) { + return + } + } } let radius = thisObject.payload.floatingObject.container.frame.radius diff --git a/Projects/Governance/Schemas/App-Schema/user-profile.json b/Projects/Governance/Schemas/App-Schema/user-profile.json index 4fe356ae4..25f0c6cf2 100644 --- a/Projects/Governance/Schemas/App-Schema/user-profile.json +++ b/Projects/Governance/Schemas/App-Schema/user-profile.json @@ -76,5 +76,8 @@ "childType": "Signing Accounts", "autoAdd": false } - ] + ], + "inMapMode": { + "showNodeType": false + } } \ No newline at end of file