Changeset 537

Show
Ignore:
Timestamp:
04/03/08 17:09:58 (8 months ago)
Author:
allens
Message:

added event type (MapEvent?.PROVIDER_CHANGED) for when the map provider changes

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/as3/lib/com/modestmaps/events/MapEvent.as

    r447 r537  
    55package com.modestmaps.events 
    66{ 
     7        import com.modestmaps.core.MapExtent; 
     8        import com.modestmaps.mapproviders.IMapProvider; 
     9         
    710        import flash.events.Event; 
    811        import flash.geom.Point; 
    9         import com.modestmaps.core.MapExtent; 
    1012        //import com.modestmaps.geo.Location; 
    1113        //import com.modestmaps.core.Coordinate; 
     
    3638            public static const EXTENT_CHANGED:String = 'extentChanged'; 
    3739                public var newExtent:MapExtent; 
     40                 
     41                public static const PROVIDER_CHANGED:String = 'providerChanged'; 
     42                public var newMapProvider:IMapProvider; 
    3843 
    3944                public function MapEvent(type:String, bubbles:Boolean=false, cancelable:Boolean=false) 
  • trunk/as3/lib/com/modestmaps/Map.as

    r454 r537  
    436436                        } 
    437437                         
     438                        dispatchEvent(new MapEvent(MapEvent.PROVIDER_CHANGED, true)); 
    438439                        Reactor.callLater(1000,callCopyright); 
    439440                }