Skip to content

Commit 3821082

Browse files
authored
Merge pull request #485 from AR-js-org/latlontoworld
Add latLonToWorld() method to gps-new-camera for consistency with gps…
2 parents f328e62 + dfec849 commit 3821082

File tree

4 files changed

+7
-3
lines changed

4 files changed

+7
-3
lines changed

aframe/build/aframe-ar-new-location-only.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

aframe/build/aframe-ar-nft.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

aframe/build/aframe-ar.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

aframe/src/new-location-based/gps-new-camera.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,10 @@ AFRAME.registerComponent("gps-new-camera", {
9898
this.threeLoc.stopGps();
9999
},
100100

101+
latLonToWorld: function (lat, lon) {
102+
return this.threeLoc.lonLatToWorldCoords(lon, lat);
103+
},
104+
101105
_sendGpsUpdateEvent: function (lon, lat) {
102106
this.el.emit("gps-camera-update-position", {
103107
position: {

0 commit comments

Comments
 (0)