o: ActiveSupport::Cache::Entry	:@compressedF:@expires_in0:@created_atf1372843458.111809:@value"1	{I"
class:EFI"BundledAsset;�FI"logical_path;�FI"application;�TI"
pathname;�FI"7$root/app/assets/javascripts/application.js.coffee;�TI"content_type;�FI"application/javascript;�FI"
mtime;�FI"2013-05-16T13:34:39+02:00;�FI"length;�Fi~I"digest;�F"%75016c6a607977bbdabf84ea9fa550faI"source;�FI"~(function() {

  require(['jquery', 'Cesium', 'app'], function($, Cesium, App) {
    return $(function() {
      var animate, app, bing, canvas, centralBody, ellipsoid, onResize, primitives, terrainProvider, tick,
        _this = this;
      app = new App();
      canvas = $('#globe')[0];
      this.scene = new Cesium.Scene(canvas);
      console.log({
        scene: this.scene,
        app: app
      });
      primitives = this.scene.getPrimitives();
      bing = new Cesium.BingMapsImageryProvider({
        url: 'http://dev.virtualearth.net',
        mapStyle: Cesium.BingMapsStyle.AERIAL,
        proxy: Cesium.FeatureDetection.supportsCrossOriginImagery() ? void 0 : new Cesium.DefaultProxy('/proxy/')
      });
      terrainProvider = new Cesium.CesiumTerrainProvider({
        url: 'http://cesium.agi.com/smallterrain'
      });
      ellipsoid = Cesium.Ellipsoid.WGS84;
      centralBody = new Cesium.CentralBody(ellipsoid);
      centralBody.getImageryLayers().addImageryProvider(bing);
      centralBody.terrainProvider = terrainProvider;
      primitives.setCentralBody(centralBody);
      new Cesium.SceneTransitioner(this.scene, ellipsoid);
      animate = function() {};
      tick = function() {
        _this.scene.initializeFrame();
        animate();
        _this.scene.render();
        return Cesium.requestAnimationFrame(tick);
      };
      tick();
      canvas.oncontextmenu = function() {
        return false;
      };
      onResize = function() {
        var height, width;
        width = canvas.clientWidth;
        height = canvas.clientHeight;
        if (canvas.width === width && canvas.height === height) {
          return;
        }
        canvas.width = width;
        canvas.height = height;
        return _this.scene.getCamera().frustum.aspectRatio = width / height;
      };
      $(window).on('resize', onResize);
      return onResize();
    });
  });

}).call(this);
;�FI"required_assets_digest;�F"%0bef1a8af5459b88d999eb87e4039d39I"
_version;�F"%6776f581a4329e299531e1d52aa59832