fix small relation issues
[potlatch2.git] / net / systemeD / potlatch2 / mapfeatures / editors / RouteIcon.mxml
index dba2041659ae94b534b5e77a4b81c39e4ebade4b..08b0b95f8f46b622c05abb510c511a81cfa986ca 100644 (file)
     private var _iconHTML:String = "";
     private var _bg:String = "white";
     private var _fg:String = "black";
+    private var _relation:Relation;
          
     public function setRoute(relation:Relation, icon:XMLList):void {   
+        _relation = relation;
         _iconHTML = Feature.makeHTMLIcon(icon, relation);
 
         if ( icon.length() > 0 ) {
     private function get bg():uint {
         return MapCSS.parseCSSColor(_bg);
     }
+    
+    public function get route():Relation {
+        return _relation;
+    }
     ]]></mx:Script>
 </mx:HBox>