Skip to content

ubilabs/google-maps-api-threejs-layer

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Three.js Layer for the Google Maps API

Google Maps API layer that uses Three.js to for super fast animation.

Usage

new ThreejsLayer(options, completeCallback);

Example

new ThreejsLayer({ map: map }, function(layer){
  
  var geometry = new THREE.Geometry(),
    location = new google.maps.LatLng(lat, lng),
    vertex = layer.fromLatLngToVertex(location);

  geometry.vertices.push( vertex );

  var particles = new THREE.ParticleSystem(geometry, material);
  layer.add(particles);
});

About

Based on the excellent CanvasLayer by @brendankenny

Developed by Martin Kleppe at Ubilabs.

Released under the Apache License 2.0.

About

Google Maps API layer that uses Three.js to for super fast animation

Resources

Stars

Watchers

Forks

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •