映射:如何向infotemplate添加关闭按钮

时间:2012-07-31 03:04:27

标签: javascript html esri arcgis-js-api

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

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

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

1 个答案:

答案 0 :(得分:0)

添加:

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

有关详细信息,请参阅此link

祝你好运!!