【问题标题】:Mapping : How to add a close button to infotemplate映射:如何向 infotemplate 添加关闭按钮
【发布时间】:2012-07-28 18:30:50
【问题描述】:

如何向信息模板添加关闭按钮?

// My info template looks like this, 't' and 'Description' are variables

var infoTemplate1 = new esri.InfoTemplate(Title + ' - ' + t,"Description:" + "<br>" + Description);

【问题讨论】:

    标签: javascript html esri arcgis-js-api


    【解决方案1】:

    添加:

    <button dojoType='dijit.form.Button' onClick='javascript:window.close();''>Done</button>")
    

    请参阅此link 了解更多信息。

    祝你好运!

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 2019-06-03
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-09-29
      • 1970-01-01
      相关资源
      最近更新 更多