o: ActiveSupport::Cache::Entry :@compressedF:@expires_in0:@created_atf1320526602.5453529ç: @value{I" class:EFI"BundledAsset; FI"id; F"%8c39cbc99e54bfb74878f95de9cb7827I"logical_path; FI"medivo/lab_list/views.js; FI" pathname; FI"k/Users/danielsudol/projects/medivo/medivo_resource/app/assets/javascripts/medivo/lab_list/views.coffee; FI"content_type; FI"application/javascript; FI" mtime; FI"2011-10-30T12:48:24-04:00; FI" body; FI"Ô (function() { var __hasProp = Object.prototype.hasOwnProperty, __extends = function(child, parent) { for (var key in parent) { if (__hasProp.call(parent, key)) child[key] = parent[key]; } function ctor() { this.constructor = child; } ctor.prototype = parent.prototype; child.prototype = new ctor; child.__super__ = parent.prototype; return child; }; window.LabListView = (function() { __extends(LabListView, ListView); function LabListView(list) { this.list = list; LabListView.__super__.constructor.call(this, this.list, 'lab_list', 'lab_item_template'); } return LabListView; })(); window.MapView = (function() { MapView.prototype.el = $('#map_canvas'); MapView.prototype.center_marker = null; MapView.prototype.map = null; MapView.prototype.markerBounds = new google.maps.LatLngBounds(); MapView.prototype.markerBoundsZoomOut = 0.1; function MapView(list, center_point) { var map_view; this.list = list; this.center_point = center_point; this.render(); map_view = this; this.list.tracker_elem.change(function() { return map_view.render(); }); } MapView.prototype.options = { mapTypeId: google.maps.MapTypeId.ROADMAP, mapTypeControl: false }; MapView.prototype.prepareMap = function() { if (!document.getElementById("map_canvas")) { return; } if (!this.map) { return this.map = new google.maps.Map(document.getElementById("map_canvas"), this.options); } }; MapView.prototype.createCenterMarker = function() { var point; if (this.center_point) { point = new google.maps.LatLng(this.center_point.lat, this.center_point.lng); this.center_marker = new google.maps.Marker({ position: point, map: this.map, title: this.center_point.title, icon: "/assets/medivo/arrow.png" }); } if (this.markerBounds && this.center_marker) { return this.markerBounds.extend(this.center_marker.position); } }; MapView.prototype.setMarkers = function(map, markerBounds) { return $.each(this.list.getList(), function(index, model) { return model.setMarker(map, markerBounds); }); }; MapView.prototype.clear = function() { this.list.clearMarkers(); if (this.center_marker) { this.center_marker.setMap(null); this.center_marker = null; } return this.markerBounds = new google.maps.LatLngBounds(); }; MapView.prototype.render = function() { var extendPoint; if (!this.list) { return; } this.clear(); this.prepareMap(); if (!this.map) { return; } this.createCenterMarker(); this.setMarkers(this.map, this.markerBounds); if (this.markerBounds.getNorthEast().equals(this.markerBounds.getSouthWest())) { extendPoint = new google.maps.LatLng(this.markerBounds.getNorthEast().lat() + this.markerBoundsZoomOut, this.markerBounds.getNorthEast().lng() + this.markerBoundsZoomOut); this.markerBounds.extend(extendPoint); } return this.map.fitBounds(this.markerBounds); }; return MapView; })(); }).call(this); ; TI"asset_paths; F[I"b/Users/danielsudol/projects/medivo/medivo_resource/app/assets/javascripts/medivo/views.coffee; FI"k/Users/danielsudol/projects/medivo/medivo_resource/app/assets/javascripts/medivo/lab_list/views.coffee; FI"dependency_paths; F[{I" path; FI"k/Users/danielsudol/projects/medivo/medivo_resource/app/assets/javascripts/medivo/lab_list/views.coffee; FI" mtime; FIu: Time Ð瀀Á: @_zoneI"EDT; T: offsetiþÀÇI"hexdigest; F"%16ad2a55442ab212f0595f3337970830{I" path; FI"b/Users/danielsudol/projects/medivo/medivo_resource/app/assets/javascripts/medivo/views.coffee; FI" mtime; FIu; ¶ç€ðå; I"EDT; T; iþÀÇI"hexdigest; F"%967703f77e3dcde6fe0f7a68c4848a42I" _version; F"%ee50e40b36d7dc25c526aaff3fac8c9c