2016-07-14 10 views

答えて

0

は遅すぎるかもしれないが、他の誰同様の問題を持っている場合:

jscode = sprintf("var text = data.getValue(chart.getSelection()[0].row,0); 
       Shiny.onInputChange('%s', text.toString())", 
       session$ns('text')) 
gvisMap(df,'locationvar','tipvar', 
       options=list(showTip=TRUE, mapType='normal', 
          enableScrollWheel=TRUE, 
          gvis.listener.jscode=jscode)) 

サーバーでの入力と出力のほかに、セッションを含めます。リスナーは、アイコンのマウスクリックをキャプチャし、入力$ text内の選択したアイコンの 'locationvar'を返します。

関連する問題