3DStreet / 3dstreet

🚲🚢🚌 Web-based 3D visualization of streets using A-Frame
https://3dstreet.app
Other
249 stars 30 forks source link

error when first placing 3dtiles #661

Closed kfarr closed 1 week ago

kfarr commented 1 week ago

how to reproduce:

workaround:

kfarr commented 1 week ago

this has happened a few times now, curious if @Algorush you have experienced this or just me?

kfarr commented 1 week ago

sometimes this also happens when loading a new scene with 3dtiles

Algorush commented 1 week ago

this has happened a few times now, curious if @Algorush you have experienced this or just me?

yes, I described here: https://github.com/3DStreet/3dstreet/issues/633. I'll try to fix it now, I think I now why its happend

kfarr commented 1 week ago

@Algorush unfortunately can I ask for help fixing one last thing in the aframe-loader-3dtiles repo?

It is unclear what is happening on line 53 in index.js with both a && and || operator. Here is the raw linting error. Can you update and indicate what is the intended logic with parentheses?

/Users/kieranfarr/dev/aframe-loader-3dtiles-component/index.js
  158:23  error  Unexpected mix of '&&' and '||'. Use parentheses to clarify the intended order of operations  no-mixed-operators
  158:41  error  Unexpected mix of '&&' and '||'. Use parentheses to clarify the intended order of operations  no-mixed-operators

also should this be merged too? or closed? https://github.com/3DStreet/aframe-loader-3dtiles-component/pull/10

Algorush commented 1 week ago

It is unclear what is happening on line 53 in index.js with both a && and || operator. Here is the raw linting error. Can you update and indicate what is the intended logic with parentheses?

Yes, only this is on line 158. The logic is as follows: if lat and long are passed to the component and/or height is passed, then update the coordinates in runtime. May need to enclose this.data.lat && this.data.long in parentheses?

also should this be merged too? or closed? 3DStreet/aframe-loader-3dtiles-component#10

It should be merged, to remove extra unnecessary code

kfarr commented 1 week ago

close by https://github.com/3DStreet/3dstreet/pull/663