Changeset 604

Show
Ignore:
Timestamp:
07/16/08 18:37:24 (2 months ago)
Author:
allens
Message:

AbstractMapProvider? now accepts min and max zoom in the constructor args; defaults are the MIN_ZOOM and MAX_ZOOM constants.

Files:

Legend:

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

    r599 r604  
    3737                 * Abstract constructor, should not be instantiated directly. 
    3838                 */ 
    39                 public function AbstractMapProvider(
     39                public function AbstractMapProvider(minZoom:int=MIN_ZOOM, maxZoom:int=MAX_ZOOM
    4040                { 
    4141                    // see: http://modestmaps.mapstraction.com/trac/wiki/TileCoordinateComparisons#TileGeolocations 
     
    4545                __projection = new MercatorProjection(26, t); 
    4646 
    47                 __topLeftOutLimit = new Coordinate(0, Number.NEGATIVE_INFINITY, MIN_ZOOM); 
    48                 __bottomRightInLimit = (new Coordinate(1, Number.POSITIVE_INFINITY, 0)).zoomTo(MAX_ZOOM); 
     47                __topLeftOutLimit = new Coordinate(0, Number.NEGATIVE_INFINITY, minZoom); 
     48                __bottomRightInLimit = (new Coordinate(1, Number.POSITIVE_INFINITY, 0)).zoomTo(maxZoom); 
    4949                } 
    5050