Skip to content
This repository has been archived by the owner on Apr 25, 2023. It is now read-only.

fix: layers disappearing when in nested folders #101

Merged
merged 2 commits into from Oct 15, 2021
Merged

Conversation

KaWaite
Copy link
Member

@KaWaite KaWaite commented Oct 13, 2021

Fixes an issue where all markers inside a nested folder (folder within a folder, or deeper) stopped displaying on cesium.
Also affected was marker information in Storytelling. Storytelling showed blanks which were broken (if selected nothing would happen, or if cycling through the layers, would break the flow and be completely back to 0)

@KaWaite KaWaite requested a review from rot1024 October 13, 2021 03:58
@netlify
Copy link

netlify bot commented Oct 13, 2021

❌ Deploy Preview for reearth-web failed.

🔨 Explore the source changes: 183d30e

🔍 Inspect the deploy log: https://app.netlify.com/sites/reearth-web/deploys/61668f82d0724f00087c9e04

@codecov
Copy link

codecov bot commented Oct 13, 2021

Codecov Report

Merging #101 (183d30e) into main (1b90322) will increase coverage by 0.10%.
The diff coverage is 66.66%.

Impacted file tree graph

@@            Coverage Diff             @@
##             main     #101      +/-   ##
==========================================
+ Coverage   53.43%   53.53%   +0.10%     
==========================================
  Files          48       48              
  Lines         889      891       +2     
  Branches      117      119       +2     
==========================================
+ Hits          475      477       +2     
  Misses        364      364              
  Partials       50       50              
Impacted Files Coverage Δ
...rc/components/molecules/Visualizer/Layers/store.ts 88.88% <66.66%> (+0.88%) ⬆️

HideBa
HideBa previously approved these changes Oct 13, 2021
src/components/molecules/Visualizer/Layers/store.ts Outdated Show resolved Hide resolved
Copy link
Contributor

@issmail-basel issmail-basel left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me, but @HideBa approach is cleaner.

@KaWaite KaWaite merged commit 778395e into main Oct 15, 2021
@KaWaite KaWaite deleted the fix-nested-folders branch October 15, 2021 07:36
keiya01 pushed a commit that referenced this pull request Apr 25, 2023
* remove schema field from property.SchemaGroup and Item

* rename methods

* delete property.FieldUnsafeBuilder

* add methods to value

* refactor test

* refactor usage of references and Clone methods

* add cast method to property.Field

* add RemoveLayer method to layer/IDList

* add IDs and Properties methods to layer/List

* rename property/GroupList.GetGroup

* fix test

* add IDs method to property/List

* add nil check to property/SchemaField and plugin/Plugin

* add SchemaLoaderFromMap to property

* add PropertySchema method to manifest/Manifest
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
3 participants