Commit ae2a0557 authored by Alfakhori's avatar Alfakhori
Browse files

fix version 186

parent 499216b7
Pipeline #12485 passed with stage
in 26 seconds
......@@ -859,8 +859,8 @@ async function activateXR(sceneData = null) {
navigator.geolocation.getCurrentPosition(
(position) => {
geoLocation = {
latitude: roundTo(position.coords.latitude, 5),
longitude: roundTo(position.coords.longitude, 5),
latitude: window.roundTo(position.coords.latitude, 5),
longitude: window.roundTo(position.coords.longitude, 5),
};
console.log("GeoLocation: " + JSON.stringify(geoLocation));
......@@ -1006,6 +1006,14 @@ function playButtonSound() {
}
}
window.selectModel = selectModel;
window.updateRotation = updateRotation;
window.updateScale = updateScale;
window.updateMoveDelta = updateMoveDelta;
window.moveModelDynamic = moveModelDynamic;
window.closeDynamicMenu = closeDynamicMenu;
window.roundTo = window.roundTo;
/* ============================================================
GLOBAL API BRIDGE
------------------------------------------------------------
......
......@@ -336,3 +336,4 @@ window.init_map = init_map;
window.centerOnPlan = centerOnPlan;
window.threeToLeaflet = threeToLeaflet;
window.leafletToThree = leafletToThree;
window.roundTo = roundTo;
......@@ -189,7 +189,7 @@ function showStartScreen() {
predefinedButton2 = null;
// Start AR
window.activateXR(sceneData);
window.window.activateXR(sceneData);
};
/* ==========================================================
......@@ -197,7 +197,7 @@ function showStartScreen() {
========================================================== */
loadButton.onclick = () => {
window.loadSceneFromFile((data, fileName) => {
window.window.loadSceneFromFile((data, fileName) => {
if (data && fileName) {
sceneData = data;
sceneFileName = fileName;
......
......@@ -36,7 +36,6 @@
STANDARDMENÜ
============================================================ -->
<div id="menu-bar">
<div
......@@ -307,7 +306,7 @@
============================================================ -->
<div id="app-version">
v0.1.186
v0.1.4
</div>
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment