anchor.diff:    return tree;
   }
   $(document).ready(function(){
  +  $("#relation_tree_container2").kmapsFancytree({
  +    featureId: <%= @feature.fid %>,
  +  });
     <% unless frt.empty? %>
         $('#relation_tree_container').fancytree({
   				extensions: ["glyph"],
  
positive.code:           frt = rt.empty? ? "" : rt[:tree].empty? ? "" : rt[:tree]
            unless frt.empty? %>
              <h3>Hierarchy tree</h3>
              <div id='relation_tree_container'></div>
  <%        end
            unless fnit.empty? %>
  
negative.code: 
  <% #TODO: when flyout uses fancytree remove this js %>
  <%= javascript_include_tag 'kmaps_tree/jquery.fancytree-all.min' %>
  <%= javascript_include_tag 'kmaps_engine/kmaps_fancytree' %>
  <%#= stylesheet_link_tag 'ui.fancytree.min' %>
  <%= stylesheet_link_tag 'kmaps_tree/kmapstree' %>
  <script type='text/javascript'>
  