Skip to content

Commit

Permalink
update mapbox html example code
Browse files Browse the repository at this point in the history
  • Loading branch information
Algorush committed Apr 20, 2024
1 parent 7017c3d commit 2f70a8a
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions mapbox.html
Original file line number Diff line number Diff line change
Expand Up @@ -10,9 +10,6 @@
<!-- mapbox -->
<script src="https://github.3dstreet.org/src/lib/aframe-mapbox-component.min.js"></script>

<!-- save / load -->
<script src="./src/json-utils.js"></script>

<title>3DStreet</title>
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="icon" type="image/x-icon" href="ui_assets/favicon.ico">
Expand Down Expand Up @@ -126,8 +123,9 @@
</a-scene>
</body>
<script>

document.getElementById('inputfile')
.addEventListener('change', fileJSON);
.addEventListener('change', STREET.utils.fileJSON);

function buttonScreenshotTock() {
const screenshotEl = document.getElementById('screenshot');
Expand All @@ -149,6 +147,7 @@
}, this.data * 1000)
}
});

</script>

<!-- Google Analytics - Global site tag (gtag.js) -->
Expand Down

0 comments on commit 2f70a8a

Please sign in to comment.