web-gl based globe application inspired by the web-gl globe of the google arts team.
Currently google chrome, firefox as well as safari browsers are supported.
The build process, which generates textures and javascript index files, requires a running golang and perl environment with a working Perl Image::Magick module.
This globe was inspired by dataarts/webgl-globe and makes heavy use of the Three.js and Tween.js libraries. Country flag images are fetched from geognos api.
- country hovering
- country heatmap
- particle system based on geo coordinates (lat/long)
- data pillars based on geo coordinates (lat/long,country)
- connections based on geo coordinates (lat/long,country)
Currently a few sample applications are part of the repo. Please also review the requirements section for build process requirements.
In order to start an example please follow the following instructions:
The build process could take some time because the textures are currently generated in a very inefficient way. Feel free to improve this by submitting a pull request ;)
% make
To run the examples make sure that the corresponding golang packages are installed:
% go get github.com/sebkl/gotojs
% go get github.com/sebkl/gopenflights
Basic example:
% cd HTDOCS/examples/basic && go run server.go
2016/02/10 21:10:34 Registering converter for type string
2016/02/10 21:10:34 Registering converter for type time.Time
2016/02/10 21:10:34 FileServer enabled at '/p'
2016/02/10 21:10:34 GotojsEngine enabled at '/gotojs/'
2016/02/10 21:10:34 Starting server at ":8080".
Openflights example:
% cd HTDOCS/examples/basic && go run server.go
...
Twitter example:
% cd HTDOCS/examples/twitter/
% cp witter_account.json.sample twitter_account.json
% vim HTDOCS/examples/twitter/twitter_account.json
% # Adjust your twitter account details to initiate a tweet stream.
% ./twitter
...
Open your browser and browser the page localhost:8080.