Changeset 613

Show
Ignore:
Timestamp:
07/17/08 14:09:05 (2 months ago)
Author:
tom
Message:

commenting out some errant traces

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/tom-tweenlite/lib/com/modestmaps/core/TileGrid.as

    r612 r613  
    117117                protected static const DEFAULT_MAX_CHILD_SEARCH:int = 1; 
    118118                protected static const DEFAULT_MAX_TILES_TO_KEEP:int = 256; 
    119                 protected static const DEFAULT_TILE_BUFFER:int = 0
     119                protected static const DEFAULT_TILE_BUFFER:int = 1
    120120                protected static const DEFAULT_ENFORCE_BOUNDS:Boolean = true; 
    121121                protected static const DEFAULT_MAX_OPEN_REQUESTS:int = 4; 
     
    155155                public function TileGrid(map:Map, w:Number, h:Number, draggable:Boolean, provider:IMapProvider) 
    156156                { 
     157                        doubleClickEnabled = true; 
     158                         
    157159                        this.map = map; 
    158160                        this.draggable = draggable; 
     161 
     162                        // don't call set map provider here, because it triggers a redraw and we're not ready for that 
    159163                        this.provider = provider; 
    160  
     164                         
     165                        // but do grab tile dimensions: 
    161166                        _tileWidth = provider.tileWidth; 
    162167                        _tileHeight = provider.tileHeight; 
    163168 
     169                        // and calculate bounds from provider 
     170                        calculateBounds(); 
     171                         
    164172                        this.tileQueue = new TileQueue(); 
    165173                        this.tileCache = new TileCache(map); 
    166174 
    167                         doubleClickEnabled = true; 
    168  
    169                         // from provider: 
    170                         calculateBounds(); 
    171                          
     175                        this.mapWidth = w; 
     176                        this.mapHeight = h; 
     177 
    172178                        debugField = new TextField(); 
    173179                        debugField.defaultTextFormat = new TextFormat(null, 12, 0x000000, false); 
     
    175181                        debugField.background = true; 
    176182                        debugField.text = "messages"; 
    177                         debugField.x = debugField.y = 5; 
     183                        debugField.x = mapWidth - debugField.width - 15;  
     184                        debugField.y = mapHeight - debugField.height - 15; 
    178185                        debugField.name = 'text'; 
    179186                        debugField.mouseEnabled = false; 
     
    184191                        lastFrameTime = getTimer(); 
    185192                         
    186                         this.mapWidth = w; 
    187                         this.mapHeight = h; 
    188  
    189193                        well = new Sprite(); 
    190194                        well.doubleClickEnabled = true; 
     
    976980                        mapHeight = p.y; 
    977981                scrollRect = new Rectangle(0, 0, mapWidth, mapHeight); 
     982 
     983                                debugField.x = mapWidth - debugField.width - 15;  
     984                                debugField.y = mapHeight - debugField.height - 15; 
    978985                         
    979986                        dirty = true; 
  • branches/tom-tweenlite/lib/com/modestmaps/extras/ZoomSlider.as

    r612 r613  
    8787                public function update(event:MapEvent=null):void 
    8888                { 
    89                         if (event) trace(event.type, "in ZoomSlider.update"); 
     89                        //if (event) trace(event.type, "in ZoomSlider.update"); 
    9090                        if (!dragging) { 
    9191                                proportion = (map.grid.zoomLevel - map.grid.minZoom) / (map.grid.maxZoom - map.grid.minZoom); 
  • branches/tom-tweenlite/lib/com/modestmaps/mapproviders/DailyPlanetProvider.as

    r595 r613  
    5858                                         
    5959                        //trace(coord, bbox); 
    60                         trace(url); 
     60                        //trace(url); 
    6161                        return [ url ]; 
    6262                }