An open API service indexing awesome lists of open source software.

https://github.com/akbartus/a-frame-component-three-geo-updated

This is an updated version of three-geo component for A-Frame
https://github.com/akbartus/a-frame-component-three-geo-updated

a-frame aframevr mapping three-geo

Last synced: 4 months ago
JSON representation

This is an updated version of three-geo component for A-Frame

Awesome Lists containing this project

README

          

# A-Frame Component: Three-Geo (Updated Version)
Video screen capture

### **Description / Rationale**
This is an updated version of A-Frame component for "Three-geo", the library for 3D geographic visualization. The original version of the component was developed by KJStrand. The updated version is compatible with latest version of A-frame and has the following new features:
* The component and three-geo files were combined into single file;
* Flat map style was added;
* Possibility of selecting the style of the map: elevated, wireframe and contour
* Possibility of assigning color to wireframe styled map.

### **Instructions**
In order to use the component attach "three-geo" to any entity. The component has the following attributes:
* token: { type: 'string', default: '*******' } - Token generated by Mapbox.
* lat: { type: 'number', default: 35.3778 } - latitude of the location on Mapbox.
* lng: { type: 'number', default: 138.7472 } - longitude of the location on Mapbox.
* radius: { type: 'number', default: 5.0 } - radius of bounding circle (km).
* zoom: { type: 'number', default: 10 } - zoom level.
* axesHelper: { type: 'boolean', default: false } - Axes helper to learn about orientation in 3d space.
* flatMap: { type: 'boolean', default: false } - Flat map style without any elevations.
* mapStyle: { type: 'string', default: "elevated" } - The following map styles are present: elevated, wireframe and contour. Will show if flatMap is false.
* wireframeColor: { type: 'color', default: "#ffffff" } - if wireframe map style is selected, allows to change the color of the wireframe.

The code below shows the sample implementation of the component:
```



A-Frame Component: Three-geo (Updated)





```
To learn more about "Three-geo" library, check the repository page of it.

### **Tech Stack**
The project is powered by AFrame and Three.js.

### **Demo**
See demo of the component here: [Demo](https://three-geo.glitch.me/)