Changeset 333

Show
Ignore:
Timestamp:
08/10/07 22:13:03 (1 year ago)
Author:
tom
Message:

markerClip now public so that children can be inserted behind it, it can be hidden, etc.

Files:

Legend:

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

    r332 r333  
    7171         
    7272                // markers are attached here 
    73                 private var markers:MarkerClip; 
     73                public var markerClip:MarkerClip; 
    7474                 
    7575            // Who do we get our Map graphics from? 
     
    117117                grid.init(__width, __height, draggable, provider, this); 
    118118 
    119                         markers = new MarkerClip(this); 
    120                         markers.x = __width/2; 
    121                         markers.y = __height/2; 
    122                         addChild(markers); 
     119                        markerClip = new MarkerClip(this); 
     120                        markerClip.x = __width/2; 
     121                        markerClip.y = __height/2; 
     122                        addChild(markerClip); 
    123123 
    124124                setMapProvider(provider); 
     
    645645                if (marker) { 
    646646                        //if (marker.name != id) throw new Error("marker name must match id"); 
    647                         markers.attachMarker(marker, location); 
     647                        markerClip.attachMarker(marker, location); 
    648648                } 
    649649            } 
     
    656656                public function getMarker(id:String):DisplayObject 
    657657                { 
    658                         return markers.getMarker(id); 
     658                        return markerClip.getMarker(id); 
    659659                } 
    660660 
     
    667667            { 
    668668                grid.removeMarker(id); 
    669                 markers.removeMarker(id); 
     669                markerClip.removeMarker(id); 
    670670            } 
    671671