Changeset 2385 for lang/actionscript/swfgmap
- Timestamp:
- 12/04/07 04:30:34 (13 months ago)
- Location:
- lang/actionscript/swfgmap/trunk/gyuque/gmap
- Files:
-
- 1 added
- 2 modified
-
GMapMapLayer.as (added)
-
GMapView.as (modified) (1 diff)
-
Layer.as (modified) (4 diffs)
Legend:
- Unmodified
- Added
- Removed
-
lang/actionscript/swfgmap/trunk/gyuque/gmap/GMapView.as
r2384 r2385 73 73 protected function addGoogleMapLayer():Boolean 74 74 { 75 var lyr:Layer = new Layer(this);75 var lyr:Layer = new GMapMapLayer(this); 76 76 mLayerman.push(lyr); 77 77 -
lang/actionscript/swfgmap/trunk/gyuque/gmap/Layer.as
r2384 r2385 8 8 { 9 9 private var prevScreenXY:Point; 10 protected var mViewport:GMapViewport; 10 11 public function Layer(eventSrc:EventDispatcher) 11 12 { … … 13 14 14 15 var g:Graphics = graphics; 15 g.beginFill(0xff9050); 16 g.drawRect(0,0, 3, 3); 16 17 g.beginFill(0xf5f0e9); 18 g.drawRect(-384, -128, 768, 256); 19 g.drawRect(-128, -384, 256, 768); 20 g.endFill(); 21 22 g.beginFill(0xfff8ef); 23 g.drawRect(-128, -128, 256, 256); 17 24 g.endFill(); 18 25 } … … 21 28 { 22 29 var v:GMapViewport = e.viewport; 23 30 mViewport = v; 31 24 32 if (!prevScreenXY) 33 { 25 34 prevScreenXY = new Point(v.pixelX, v.pixelY); 35 x = v.width * 0.5; 36 y = v.height * 0.5; 37 updateContent(true); 38 } 26 39 else 27 40 { … … 36 49 } 37 50 } 51 52 protected function updateContent(refreshAll:Boolean):void 53 { 54 } 38 55 } 39 56 }
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)