Footer's buttons doesn't work for location based: negative latitude not working?
thauska opened this issue · 9 comments
I was testing location base page and the buttons for publishing and download the project seems not to work. I've tested on browser Firefox and Chrome.
Hi @thauska , I tried on Chrome (Windows OS) and it seems that the buttons working properly -->
https://ar-js-org.github.io/studio/pages/location/index.html
My steps:
- Added a location (by latitude/longitude);
- Added a ".png" content.
Then zip download package and github flows activated correctly.
How could I reproduce your problem?
I did the same steps and the buttons doesn't work. I tried on Chrome and Firefox (Linux Manjaro OS)
@thauska please can you open the console dev tools, and see if there is problems ? If so, please share screenshot
@thauska
Using your location data, I reproduced the bug and see these errors on console:
components:gltf-model:warn Unexpected token < in JSON at position 0
three.js:2546 THREE.Matrix3: .getInverse() can't invert matrix, determinant is 0
Seems that putting "Latitude" >0 solved it @nicolocarpignoli
components:gltf-model:warn Unexpected token < in JSON at position 0
three.js:2546 THREE.Matrix3: .getInverse() can't invert matrix, determinant is 0
These above are problems related to the asset, but they're not the cause. I can reproduce the bug with a negative latitude, you're right. No error is shown on console.
I guess there is something related to the latitude when is negative. That should be fixed, latitude and longitude can be negative.
Yes I reproduced the bug. No error on console.
It's strange because with lng <0 it works. We have to debug it.
let validLat = !isNaN(lat) && lat >= -90 && lat <= 90;
let validLng = !isNaN(lng) && lng >= -180 && lng <= 180;