RegionClick: function (sender,args);
sender. Event source.
args. Event information.
The RegionClick event is fired on clicking a map territory.
To execute this example, the HTML page must contain the ReportBox component named reportBox (see Example of the ReportBox Component Layout). The regular report sheet must contain a map.
var prxMap = reportBox.getDataView().getGridView().getTabSheet().getModel().getObjects()[0].getITabObject();//get regular report map
prxMap.RegionClick.add(function (sender, args) {//handler that processes region click event
console.log(args.ShapeId)
});
After executing the example on clicking a map region the browser console shows ID of the selected territory.
See also: