The second one is exactly what I’m looking for. I’m beyond new to the web appbuilder. I created a custom widget and not sure how I would incorporate this code.. Here is what my widget currently looks like.. Would I place it in the
tag?
define(['dojo/_base/declare',
'jimu/BaseWidget'
],
function(declare, BaseWidget) {
var clazz = declare(, {
templateString: '
',
_getMapId: function(){
alert(this.map.id);
}
});
clazz.hasStyle = false;
clazz.hasUIFile = false;
clazz.hasLocale = false;
clazz.hasConfig = false;
return clazz;
});