I have built sites before using the JS API but am new to webappbuilder.
I'm having difficulty finding any documentation on how to set up the "onClick" behavior of the map object. Currently i'm using something like this :
clickeventhandler = dojo.connect(this.map, "onclick", function (evt)
{
alert("map clicked");
});
Kyle,
You should add your map click event in the MapManager.js or a custom Widget.js, depending on what you are wanting to do:
clickeventhandler = this.map.on("click", function(){
alert("map clicked"):
});
You need to stay away from using dojo.connect as it has been superseded by "on"