3dstreet
3dstreet copied to clipboard
can't change the parameters of the street component for a scene loaded from JSON
After loading the scene from JSON, the #default-street
element does not have a street component, meaning we cannot change its properties such as showAnimation, sowGround, ...
As a user, I wish to change street and streetmix-loader
parameters upon reloading a saved scene. Including the option to regenerate the street from streetmix or change the URL to another street
I propose the following solution to make it possible to change the parameters of the street
and streetmix-loader
components after loading a scene from a JSON file.
- avoid renaming
street
tonot-street
andstreetmix-loader
tonot-streetmix-loader
. - Don't call init/update methods of the
street
andstreetmix-loader
when loading scene with these components from JSON. To do this I will add a global variable:STREET.sourceType = jsonFile/streetmix/streetplan.
And then make ability to change street
component parameters without scene reloading: https://github.com/3DStreet/3dstreet/issues/511