ubilabs / google-maps-api-threejs-layer

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

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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


Languages

Language:JavaScript 100.0%