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 scene function - reference layer is not removed when loading new scene #485

Open
Algorush opened this issue Feb 28, 2024 · 2 comments
Open
Assignees

Comments

@Algorush
Copy link
Collaborator

If open a scene with a reference layer, for example with a mapbox component, then if then load another scene from JSON, the reference layer of the old scene remains in the new scene

@Algorush Algorush self-assigned this Feb 28, 2024
@kfarr
Copy link
Collaborator

kfarr commented Feb 29, 2024

I propose to have a "new scene" function that is called before loading a new scene, and will also be a user interface button that allows a user to create a blank new 3dstreet scene.

A blank scene should have all the base layers as though loading from index.html without a scene.

The new scene function should also reset metadata of scene id and title to empty strings.

On the editor, we have 4 places to call this "new scene" function:

  • when loading a 3dstreet scene from cloud via open modal
  • when loading a 3dstreet scene from upload json via open modal
  • when loading a streetmix street from open modal
  • when the user presses a "new" button in the user interface

@kfarr kfarr changed the title reference layer is not removed when loading a new scene new scene function - reference layer is not removed when loading new scene Feb 29, 2024
@Algorush
Copy link
Collaborator Author

#509

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: To Do - Soon
Development

No branches or pull requests

2 participants