Solved! Go to Solution.
Hi Rich,
It is because the web app is made using MVC.
The topic is use in the bootstrapper to publish the event and then you register to the event in the business logic module.
Not to familiar with all this, but this is how the contoller look like. Thanks
[HTML]require(["dojo/parser", "dijit/layout/BorderContainer", "dijit/layout/ContentPane","dijit/layout/AccordionContainer",
"my/map","dojo/aspect","dijit/registry","dojo/_base/connect", "dojo/topic", "dojo/domReady!"],
function(parser, borderContainer, contentPane, accordion, map, aspect,registry,connect,topic)
{
parser.parse();
var _map = addMapModule();
function addMapModule() {
var _map = new map('mapDiv');
_map.initialize();
return _map;
};
connect.connect(_map.map, 'onZoomEnd', function () {
topic.publish('zoom/end');
});
});[/HTML]