Changeset 2386 for lang/actionscript/swfgmap
- Timestamp:
- 12/04/07 05:11:12 (13 months ago)
- Files:
-
- 1 modified
Legend:
- Unmodified
- Added
- Removed
-
lang/actionscript/swfgmap/trunk/gyuque/gmap/GMapViewport.as
r2384 r2386 2 2 { 3 3 import flash.geom.Point; 4 import flash.geom.Matrix; 4 5 5 6 public class GMapViewport … … 8 9 private var mNrmXY:Point = new Point(); 9 10 private var mScreenXY:Point = new Point(); 11 private var mBitmapXY:Point = new Point(); 10 12 private var mViewSize:Point = new Point(); 11 13 … … 13 15 private var mMapSize:Number; 14 16 17 private var mViewToScreen:Matrix = new Matrix(); 18 private var mInvViewToScreen:Matrix = new Matrix(); 19 15 20 public function GMapViewport(lat:Number, lng:Number, vw:Number, vh:Number, zm:int, useDeg:Boolean = true) 16 21 { 22 resetTransform(); 23 17 24 if (useDeg) 18 25 { … … 29 36 30 37 calcXY(); 38 } 39 40 private function transformVectorScreenToView(x:Number, y:Number, Point:out):void 41 { 42 } 43 44 private function resetTransform():void 45 { 46 mViewToScreen.identity(); 47 mInvViewToScreen.identity(); 31 48 } 32 49
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)