Changeset 351
- Timestamp:
- 10/22/07 16:56:56 (1 year ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/as3/lib/com/modestmaps/mapproviders/microsoft/MicrosoftRoadMapProvider.as
r350 r351 4 4 import com.modestmaps.mapproviders.IMapProvider; 5 5 import com.modestmaps.mapproviders.microsoft.AbstractMicrosoftMapProvider; 6 7 6 8 7 /** … … 15 14 implements IMapProvider 16 15 { 16 public var hillShading:Boolean; 17 18 public function MicrosoftRoadMapProvider(hillShading:Boolean=false) 19 { 20 this.hillShading = hillShading; 21 } 22 17 23 override public function toString():String 18 24 { … … 22 28 override public function getTileUrl(coord:Coordinate):String 23 29 { 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" : ""); 25 31 } 26 32 }
