site/public/examples/quake/quake.js
function autoscale(options) {
    options = options || {};
    return function(planet) {
      planet.onInit(function() {
        var width  = window.innerWidth + (options.extraWidth || 0);
        var height = window.innerHeight + (options.extraHeight || 0);
        planet.projection.scale(Math.min(width, height) / 2);
      });
    };
  }
function autoscale(options) {
    options = options || {};
    return function(planet) {
      planet.onInit(function() {
        var width  = window.innerWidth + (options.extraWidth || 0);
        var height = window.innerHeight + (options.extraHeight || 0);
        planet.projection.scale(Math.min(width, height) / 2);
      });
    };
  }
function autoscale ( options ) { options = options || { } ; return function ( planet ) { planet . onInit ( function ( ) { var width = window . innerWidth + ( options . extraWidth || 0 ) ; var height = window . innerHeight + ( options . extraHeight || 0 ) ; planet . projection . scale ( Math . min ( width , height ) / 2 ) ; } ) ; } ; }
Plugin to automatically scale the planet's projection based on the window size when the planet is initialized
Plugin to automatically scale the planet s projection based on the window size when the planet is initialized