Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…to right-panel
  • Loading branch information
kfarr committed Sep 4, 2024
2 parents 8bda40f + 2e260f9 commit 0ff598d
Show file tree
Hide file tree
Showing 35 changed files with 790 additions and 569 deletions.
129 changes: 39 additions & 90 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@
"firebase-admin": "^12.1.1",
"firebase-functions": "^5.0.1",
"lodash-es": "^4.17.21",
"nanoid": "^5.0.7",
"posthog-js": "^1.138.3",
"prop-types": "^15.8.1",
"react": "^18.2.0",
Expand Down
17 changes: 13 additions & 4 deletions src/components/street-geo.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,11 +129,11 @@ AFRAME.registerComponent('street-geo', {
});
google3dElement.classList.add('autocreated');

if (AFRAME.INSPECTOR && AFRAME.INSPECTOR.opened) {
// emit play event to start loading tiles in Editor mode
if (AFRAME.INSPECTOR?.opened) {
google3dElement.addEventListener(
'loaded',
() => {
// emit play event to start loading tiles in Editor mode
google3dElement.play();
},
{ once: true }
Expand Down Expand Up @@ -212,12 +212,21 @@ AFRAME.registerComponent('street-geo', {
osm3dBuildingElement.classList.add('autocreated');
osm3dBuildingElement.setAttribute('data-ignore-raycaster', '');

if (AFRAME.INSPECTOR && AFRAME.INSPECTOR.opened) {
// emit play event to start loading tiles in Editor mode
if (AFRAME.INSPECTOR?.opened) {
osm3dElement.addEventListener(
'loaded',
() => {
// emit play event to start loading tiles in Editor mode
osm3dElement.play();
},
{ once: true }
);
}
if (AFRAME.INSPECTOR?.opened) {
osm3dBuildingElement.addEventListener(
'loaded',
() => {
// emit play event to start loading tiles in Editor mode
osm3dBuildingElement.play();
},
{ once: true }
Expand Down
Loading

0 comments on commit 0ff598d

Please sign in to comment.