Changeset 351

Show
Ignore:
Timestamp:
10/22/07 16:56:56 (1 year ago)
Author:
tom
Message:

making hill shading optional, default off

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/as3/lib/com/modestmaps/mapproviders/microsoft/MicrosoftRoadMapProvider.as

    r350 r351  
    44        import com.modestmaps.mapproviders.IMapProvider; 
    55        import com.modestmaps.mapproviders.microsoft.AbstractMicrosoftMapProvider; 
    6          
    76         
    87        /** 
     
    1514                implements IMapProvider 
    1615        { 
     16            public var hillShading:Boolean; 
     17             
     18            public function MicrosoftRoadMapProvider(hillShading:Boolean=false) 
     19            { 
     20                this.hillShading = hillShading; 
     21            } 
     22             
    1723                override public function toString():String 
    1824                { 
     
    2228                override public function getTileUrl(coord:Coordinate):String 
    2329                {                
    24                 return "http://r" + Math.floor(Math.random() * 4) + ".ortho.tiles.virtualearth.net/tiles/r" + getZoomString( coord ) + ".png?g=90&shading=hill"
     30                return "http://r" + Math.floor(Math.random() * 4) + ".ortho.tiles.virtualearth.net/tiles/r" + getZoomString( coord ) + ".png?g=90" + (hillShading ? "&shading=hill" : "")
    2531                } 
    2632        }