如何向信息模板添加关闭按钮?
// My info template looks like this, 't' and 'Description' are variables
var infoTemplate1 = new esri.InfoTemplate(Title + ' - ' + t,"Description:" + "<br>" + Description);
如何向信息模板添加关闭按钮?
// My info template looks like this, 't' and 'Description' are variables
var infoTemplate1 = new esri.InfoTemplate(Title + ' - ' + t,"Description:" + "<br>" + Description);
添加:
<button dojoType='dijit.form.Button' onClick='javascript:window.close();''>Done</button>")
有关更多信息,请参阅此链接。
祝你好运!!