Changeset 333
- Timestamp:
- 08/10/07 22:13:03 (1 year ago)
- Files:
-
- trunk/as3/lib/com/modestmaps/Map.as (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
trunk/as3/lib/com/modestmaps/Map.as
r332 r333 71 71 72 72 // markers are attached here 73 p rivate var markers:MarkerClip;73 public var markerClip:MarkerClip; 74 74 75 75 // Who do we get our Map graphics from? … … 117 117 grid.init(__width, __height, draggable, provider, this); 118 118 119 marker s= new MarkerClip(this);120 marker s.x = __width/2;121 marker s.y = __height/2;122 addChild(marker s);119 markerClip = new MarkerClip(this); 120 markerClip.x = __width/2; 121 markerClip.y = __height/2; 122 addChild(markerClip); 123 123 124 124 setMapProvider(provider); … … 645 645 if (marker) { 646 646 //if (marker.name != id) throw new Error("marker name must match id"); 647 marker s.attachMarker(marker, location);647 markerClip.attachMarker(marker, location); 648 648 } 649 649 } … … 656 656 public function getMarker(id:String):DisplayObject 657 657 { 658 return marker s.getMarker(id);658 return markerClip.getMarker(id); 659 659 } 660 660 … … 667 667 { 668 668 grid.removeMarker(id); 669 marker s.removeMarker(id);669 markerClip.removeMarker(id); 670 670 } 671 671
