Tweening Branch

We're working on a new branch of the as3 version of Modest Maps. It was initially started to improve the stability of the TileGrid when animating, zooming and panning. It also includes improved marker and overlay support, as well as a simplified map provider interface.

Tweening is handled by TweenLite, however this is only needed by the TweenMap class. The Map class does not implement tweening, and as such it should be easy to add new tweening library controls to Modest Maps if you need them.

Here's a "Hello World" program that adds the default Modest Maps controls to the map, and scales when the stage size changes:

package
{
  import com.modestmaps.Map;
  import com.modestmaps.extras.MapControls;
  import com.modestmaps.geo.Location;
  
  import flash.display.Sprite;
  import flash.display.StageAlign;
  import flash.display.StageScaleMode;
  import flash.events.Event;
  
  [SWF(backgroundColor="#cccccc", width="512", height="512")]
  public class HelloWorld extends Sprite
  {
    private var map:Map;
    
    public function HelloWorld()
    {
      stage.align = StageAlign.TOP_LEFT;
      stage.scaleMode = StageScaleMode.NO_SCALE;
      
      map = new Map(stage.stageWidth, stage.stageHeight, true);
      addChild(map);
      
      map.addChild(new MapControls(map));
      
      stage.addEventListener(Event.RESIZE, onStageResize);
    }
    
    private function onStageResize(event:Event):void
    {
      map.setSize(stage.stageWidth, stage.stageHeight);
    }

  }
}

more to come in this tutorial soon!