Changeset 544
- Timestamp:
- 04/10/08 10:26:59 (5 months ago)
- Files:
-
- trunk/as3/lib/com/modestmaps/core/MarkerClip.as (modified) (1 diff)
- trunk/as3/lib/com/modestmaps/events/MapEvent.as (modified) (1 diff)
- trunk/as3/lib/com/modestmaps/events/MarkerEvent.as (modified) (1 diff)
- trunk/as3/lib/com/modestmaps/flex/Map.as (modified) (4 diffs)
- trunk/as3/lib/com/modestmaps/Map.as (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/as3/lib/com/modestmaps/core/MarkerClip.as
r503 r544 124 124 delete markersByName[marker.name]; 125 125 } 126 } 127 128 public function removeAllMarkers():void { 129 130 /* Loop over all markers and remove displayObjects */ 131 for each(var marker:DisplayObject in markers) 132 { 133 if(contains(marker)) 134 removeChild(marker); 135 } 136 markers = new Array(); 137 markersByName = new Array(); 138 139 locations = new Dictionary(); 140 141 126 142 } 127 143 trunk/as3/lib/com/modestmaps/events/MapEvent.as
r537 r544 42 42 public var newMapProvider:IMapProvider; 43 43 44 public function MapEvent(type:String, bubbles:Boolean= false, cancelable:Boolean=false)44 public function MapEvent(type:String, bubbles:Boolean=true, cancelable:Boolean=false) 45 45 { 46 46 super(type, bubbles, cancelable); trunk/as3/lib/com/modestmaps/events/MarkerEvent.as
r447 r544 19 19 protected var _location:Location; 20 20 21 public function MarkerEvent(type:String, marker:DisplayObject, location:Location, bubbles:Boolean= false, cancelable:Boolean=false)21 public function MarkerEvent(type:String, marker:DisplayObject, location:Location, bubbles:Boolean=true, cancelable:Boolean=false) 22 22 { 23 23 super(type, bubbles, cancelable); trunk/as3/lib/com/modestmaps/flex/Map.as
r344 r544 26 26 import com.modestmaps.geo.*; 27 27 import com.modestmaps.mapproviders.*; 28 import com.modestmaps.mapproviders.google.*; 28 29 import com.modestmaps.mapproviders.microsoft.*; 29 import com.modestmaps.mapproviders.google.*;30 30 import com.modestmaps.mapproviders.yahoo.*; 31 31 32 import flash.events.Event;33 32 import mx.core.UIComponent; 34 33 … … 66 65 } 67 66 67 68 69 override protected function commitProperties():void 70 { 71 super.commitProperties(); 72 73 if (_map!=null) 74 { 75 if (mapZoomDirty) 76 { 77 _map.setZoom(_zoom); 78 mapZoomDirty = false; 79 } 80 81 if (mapCenterDirty) 82 { 83 _map.setCenter(_centerLocation); 84 mapCenterDirty = false; 85 } 86 87 if (mapExtentDirty) 88 { 89 _map.setExtent(_extent); 90 mapExtentDirty = false; 91 } 92 93 } 94 } 95 96 68 97 /** 69 98 * Since we're not yet supporting the full Map interface, … … 245 274 invalidateProperties(); 246 275 } 276 277 public function get zoom():int { 278 return _zoom; 279 } 247 280 248 281 protected var mapProviderDirty:Boolean = true; … … 345 378 } 346 379 380 public function removeAllMarkers():void { 381 map.removeAllMakers(); 382 } 383 347 384 /** 348 385 * TODO: implement our own event dispatchers here, trunk/as3/lib/com/modestmaps/Map.as
r543 r544 702 702 markerClip.removeMarker(id); // also calls grid.removeMarker 703 703 } 704 705 /** 706 * Remove all markers 707 */ 708 709 public function removeAllMakers():void { 710 markerClip.removeAllMarkers() 711 } 704 712 705 713 /**
