Changeset 2382 for lang/actionscript/swfgmap
- Timestamp:
- 12/04/07 01:53:19 (13 months ago)
- Location:
- lang/actionscript/swfgmap/trunk
- Files:
-
- 1 added
- 3 modified
-
TestApp.as (modified) (1 diff)
-
gyuque/gmap/GMapView.as (modified) (3 diffs)
-
gyuque/gmap/GMapViewEvent.as (added)
-
gyuque/gmap/Layer.as (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
lang/actionscript/swfgmap/trunk/TestApp.as
r2347 r2382 15 15 stage.align = StageAlign.TOP_LEFT; 16 16 stage.scaleMode = StageScaleMode.NO_SCALE; 17 18 setViewport(new GMapViewport(36.09992, 139.65497, 5)); 19 17 20 d_outMetrics(); 18 21 } -
lang/actionscript/swfgmap/trunk/gyuque/gmap/GMapView.as
r2358 r2382 40 40 mLayerman = new LayerManager(); 41 41 addGoogleMapLayer(); 42 43 if (options.initial_viewport) 44 { 45 setViewport(options.initial_viewport); 46 } 42 47 43 48 hookStdEvents(); 49 } 50 51 protected function setViewport(v:GMapViewport):void 52 { 53 mCurrentViewport = v; 54 55 var e:GMapViewEvent = new GMapViewEvent(v, GMapViewEvent.VIEWPORT_CHANGED); 56 dispatchEvent(e); 44 57 } 45 58 … … 54 67 protected function addGoogleMapLayer():Boolean 55 68 { 56 var lyr:Layer = new Layer( );69 var lyr:Layer = new Layer(this); 57 70 mLayerman.push(lyr); 58 71 59 72 return true; 60 73 } … … 78 91 protected function onMouseOut(e:MouseEvent):void 79 92 { 80 mDrag.dragging = false; 93 if (e.stageX < 0 || e.stageY < 0 || 94 e.stageX >= width || e.stageY >= height) 95 mDrag.dragging = false; 81 96 } 82 97 -
lang/actionscript/swfgmap/trunk/gyuque/gmap/Layer.as
r2358 r2382 1 1 package gyuque.gmap 2 2 { 3 import flash.events.EventDispatcher; 4 3 5 public class Layer 4 6 { 7 public function Layer(eventSrc:EventDispatcher) 8 { 9 eventSrc.addEventListener(GMapViewEvent.VIEWPORT_CHANGED, onViewportChanged); 10 } 11 12 protected function onViewportChanged(e:GMapViewEvent):void 13 { 14 15 } 5 16 } 6 17 }
![(please configure the [header_logo] section in trac.ini)](/share/chrome/site/your_project_logo.png)