<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>public/spinner.gif</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -52,6 +52,16 @@ class IndexController &lt; ApplicationController
     rescue
     end
 
+# a hack: we don't deal with datelines very well TODO improve
+# temporary solution is that if we are on the west side then extend west, else extend east
+if @w &gt; @e
+  if @w &gt; 0
+    @w = @w - 360
+  else
+    @e = @e + 360
+  end
+end
+
     # accept an explicit country code - this will override the location boundary supplied above
     @country = nil
     @country = params[:country] if params[:country] &amp;&amp; params[:country].length &gt; 1</diff>
      <filename>app/controllers/index_controller.rb</filename>
    </modified>
    <modified>
      <diff>@@ -17,5 +17,5 @@ options = YAML.load(
   )).result).with_symbols!
 options[:dir_mode] = options[:dir_mode].to_sym
 
-Daemons.run File.dirname(__FILE__) + '/twitter_aggregate.rb', options
+Daemons.run File.dirname(__FILE__) + '/poll_twitter.rb', options
 </diff>
      <filename>lib/daemons/poll_twitter_ctl</filename>
    </modified>
    <modified>
      <diff>@@ -765,11 +765,26 @@ function mapper_page_paint_request(recenter) {
 	var e = ne.lng();
 	url = url + &quot;s=&quot;+s+&quot;&amp;w=&quot;+w+&quot;&amp;n=&quot;+n+&quot;&amp;e=&quot;+e;
 
+        // spinner
+        var spinner = document.getElementById('spinner');
+        if(!spinner) {
+          spinner = document.createElement('img');
+          spinner.src = &quot;/spinner.gif&quot;;
+          spinner.id = &quot;spinner&quot;;
+          spinner.style.position = &quot;absolute&quot;;
+          spinner.style.left = &quot;10px&quot;;
+          spinner.style.top = &quot;100px&quot;;
+          spinner.style.display = &quot;block&quot;;
+          document.body.appendChild(spinner);
+        }
+        spinner.style.display = &quot;block&quot;;
+
 	new Ajax.Request(url, {
 		method:'get',
 		requestHeaders: {Accept: 'application/json'},
 		onSuccess: function(transport) {
-			var blob = transport.responseText.evalJSON();
+			spinner.style.display = &quot;none&quot;;
+                        var blob = transport.responseText.evalJSON();
 			if( blob ) {
 				mapper_page_paint(blob);
 				if( recenter == true ) {</diff>
      <filename>lib/dynamapper/dynamapper.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>def66cc159cbf3173803c1d082d728af3df9b769</id>
    </parent>
  </parents>
  <author>
    <name>User</name>
    <email>anselm@mustard.makerlab.org</email>
  </author>
  <url>http://github.com/anselm/angel/commit/b0d8e3f6f11724db4ff4c968973ce9cc1d543ee6</url>
  <id>b0d8e3f6f11724db4ff4c968973ce9cc1d543ee6</id>
  <committed-date>2009-11-04T14:07:24-08:00</committed-date>
  <authored-date>2009-11-04T14:07:24-08:00</authored-date>
  <message>added a spinner to indicate that the client is waiting for server side data
circumvented an issue with latitude longitude wrap-around so that viewing from far away shows nice data</message>
  <tree>ff6f1f8353c885ee6cb954341b66edde620b9ef7</tree>
  <committer>
    <name>User</name>
    <email>anselm@mustard.makerlab.org</email>
  </committer>
</commit>
