Changeset 613
- Timestamp:
- 07/17/08 14:09:05 (2 months ago)
- Files:
-
- branches/tom-tweenlite/lib/com/modestmaps/core/TileGrid.as (modified) (5 diffs)
- branches/tom-tweenlite/lib/com/modestmaps/extras/ZoomSlider.as (modified) (1 diff)
- branches/tom-tweenlite/lib/com/modestmaps/mapproviders/DailyPlanetProvider.as (modified) (1 diff)
- branches/tom-tweenlite/swc/bin/ModestMapsSWC.swc (modified) (previous)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/tom-tweenlite/lib/com/modestmaps/core/TileGrid.as
r612 r613 117 117 protected static const DEFAULT_MAX_CHILD_SEARCH:int = 1; 118 118 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; 120 120 protected static const DEFAULT_ENFORCE_BOUNDS:Boolean = true; 121 121 protected static const DEFAULT_MAX_OPEN_REQUESTS:int = 4; … … 155 155 public function TileGrid(map:Map, w:Number, h:Number, draggable:Boolean, provider:IMapProvider) 156 156 { 157 doubleClickEnabled = true; 158 157 159 this.map = map; 158 160 this.draggable = draggable; 161 162 // don't call set map provider here, because it triggers a redraw and we're not ready for that 159 163 this.provider = provider; 160 164 165 // but do grab tile dimensions: 161 166 _tileWidth = provider.tileWidth; 162 167 _tileHeight = provider.tileHeight; 163 168 169 // and calculate bounds from provider 170 calculateBounds(); 171 164 172 this.tileQueue = new TileQueue(); 165 173 this.tileCache = new TileCache(map); 166 174 167 doubleClickEnabled = true; 168 169 // from provider: 170 calculateBounds(); 171 175 this.mapWidth = w; 176 this.mapHeight = h; 177 172 178 debugField = new TextField(); 173 179 debugField.defaultTextFormat = new TextFormat(null, 12, 0x000000, false); … … 175 181 debugField.background = true; 176 182 debugField.text = "messages"; 177 debugField.x = debugField.y = 5; 183 debugField.x = mapWidth - debugField.width - 15; 184 debugField.y = mapHeight - debugField.height - 15; 178 185 debugField.name = 'text'; 179 186 debugField.mouseEnabled = false; … … 184 191 lastFrameTime = getTimer(); 185 192 186 this.mapWidth = w;187 this.mapHeight = h;188 189 193 well = new Sprite(); 190 194 well.doubleClickEnabled = true; … … 976 980 mapHeight = p.y; 977 981 scrollRect = new Rectangle(0, 0, mapWidth, mapHeight); 982 983 debugField.x = mapWidth - debugField.width - 15; 984 debugField.y = mapHeight - debugField.height - 15; 978 985 979 986 dirty = true; branches/tom-tweenlite/lib/com/modestmaps/extras/ZoomSlider.as
r612 r613 87 87 public function update(event:MapEvent=null):void 88 88 { 89 if (event) trace(event.type, "in ZoomSlider.update");89 //if (event) trace(event.type, "in ZoomSlider.update"); 90 90 if (!dragging) { 91 91 proportion = (map.grid.zoomLevel - map.grid.minZoom) / (map.grid.maxZoom - map.grid.minZoom); branches/tom-tweenlite/lib/com/modestmaps/mapproviders/DailyPlanetProvider.as
r595 r613 58 58 59 59 //trace(coord, bbox); 60 trace(url);60 //trace(url); 61 61 return [ url ]; 62 62 }
