Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

new features added directly into a folder aren't visible until after toggling folder visibility #5

Open
caver456 opened this issue Jun 30, 2024 · 2 comments
Labels
bug Something isn't working

Comments

@caver456
Copy link
Collaborator

After this code sequence:

fid=sts.addFolder('newFolder')
sts.addMarker(39,-120,'newMarker',description='desc',color='#00FF00',symbol='fire',size=4,folderId=fid)
sts.addLine([[-120,39],[-120.1,39.1],[-120,39.1]],title='newLine',description='desc',width=8,opacity=0.6,pattern='M12 -7M0 5M9 0A3 3 0 1 0 6 0 A3 3 0 0 0 9 0,2,20,T;M0 0L12 0,15,20',folderId=fid)

The objects in the folder aren't visible, and the left bar looks like this:

image

Burping the folder checkbox does make the new features visible (and populates their icon rows in the left bar).

@caver456 caver456 added the bug Something isn't working label Jun 30, 2024
@caver456
Copy link
Collaborator Author

caver456 commented Jul 4, 2024

This is a real problem, but, it doesn't seem like there's a way to control it with API calls - would have to directly toggle the checkbox from code. Should check with Matt at some point. Probably the GUI doesn't have to deal with this. But - what about importing into a folder?
Either way: removing from 2.0.0 checklist.

@caver456
Copy link
Collaborator Author

caver456 commented Jul 7, 2024

does the folder have any properties that can be changed via API? Maybe that could toggle visibility of children? Or a property at folder-creation time that corresponds to the first checkbox when you create a folder in the GUI:
image

@caver456 caver456 transferred this issue from ncssar/sartopo_python Jul 7, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant