title: UnfoldingMap busy looping on draw()
body: <p>After some initial trouble, I have now gotten <code>UnfoldingMap</code> to work from Eclipse, as described in <a href="http://unfoldingmaps.org/tutorials/getting-started-in-eclipse" rel="nofollow noreferrer">the tutorial</a>. This seems to work well, but the <code>draw()</code> method gets repeatedly called at high frequency, causing the CPU to go to 100%. This continues indefinitely, even after the whole map has been drawn. Here is the code for the very simple test app:</p>
  
  <pre><code>public class SimpleMapApp extends PApplet {
  
      UnfoldingMap map;
  
      public void setup() {
          size(800, 600);
          map = new UnfoldingMap(this, new Microsoft.AerialProvider());
      }
  
      public void draw() {
          map.draw();
      }
  
      public static void main(String[] args) {
          PApplet.main("SimpleMapApp");
      }
  }
  </code></pre>
  
  <p>By putting a <code>sleep()</code> in the draw method, I can see that it has to do with the tile drawing, a couple of tiles are drawn in every call to <code>draw()</code>. I think it also keeps loading map tiles from the server at a high rate; at least Google Maps seems to have banned my IP address, after I used their server in the beginning. </p>
  
  <p>How do I stop the repeated calls to <code>draw()</code> after everything has been drawn?</p>