Skip to content

Commit ed2b77f

Browse files
author
Colin McFadden
committed
update docs on altitude
1 parent 07d9bf5 commit ed2b77f

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

aframe/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -87,6 +87,14 @@ It requires latitude and longitude as a single string parameter (example with `a
8787
<a-box color="yellow" gps-entity-place="latitude: <your-latitude>; longitude: <your-longitude>"/>
8888
```
8989

90+
In addition, you can use the a-frame "position" parameter to assign a y-value or altitude to the entity. This value should be entered in meters above or below sea level. For example, this would assign a height of 300 meters above sea level, and will be displayed relative to the gps-camera's current altitude:
91+
92+
```HTML
93+
<a-box color="yellow" gps-entity-place="latitude: <your-latitude>; longitude: <your-longitude>" position="0 300 0"/>
94+
```
95+
96+
97+
9098
| Custom Attribute | Description | Default Value |
9199
|------------|-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|---------------|
92100
| distance | Distance from user, updated at every user position update. Value in meters. | 0 |

0 commit comments

Comments
 (0)