Giter Site home page Giter Site logo

webgl-globe's Introduction

WebGL Globe

This globe is based on dataarts/webgl-globe.

This globe can add and update points in realtime.

Run example

$ git clone [email protected]:roback/webgl-globe.git
$ cd webgl-globe
$ python -m SimpleHTTPServer

# Open web browser and go to localhost:8000

Usage

var container = document.getElementById( 'container' );

// This is the default
var globeOpts = {
  mapImage:            '/images/world.jpg',
  minHeight:           0.1,
  maxHeight:           180,
  maxAge:              10000,
  pointSize:           1,
  ageDelay:            1000,
  heightDecreaseSpeed: 10,
  heightIncreaseSpeed: 100,
  rotationSpeed:       1,
  coordinatePrecision: 2,
  onPointAging:        function(point, percent){},
  onPointUpdated:      function(point){},
};

// Make the globe
var globe = new Globe(container, globeOpts);

// Start the globe
globe.start();

// This is the default
var pointOpts = {
  opts.amount:            1,
  opts.maxAge:              // Defaults to globeOpts.maxAge
  opts.ageDelay:            // Defaults to globeOpts.ageDelay
  opts.heightDecreaseSpeed: // Defaults to globeOpts.heightDecreaseSpeed
  opts.heightIncreaseSpeed: // Defaults to globeOpts.heightIncreaseSpeed
  opts.onPointAging:        // Defaults to globeOpts.onPointAging
  opts.onPointUpdated:      // Defaults to globeOpts.onPointUpdated
};

// Update point/add new if it doesnt exist
globe.updatePoint(lat, lng, pointOpts);

// Pause/unpause the point updating and globe rotation
globe.togglePause();

webgl-globe's People

Contributors

roback avatar doug avatar mrdoob avatar jonobr1 avatar maxhawkins avatar sghall avatar valdean avatar georgealways avatar glampr avatar arodic avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.