PrxMapView.RegionClick

Syntax

RegionClick: function (sender,args);

Parameters

sender. Event source.

args. Event information.

Description

The RegionClick event is fired on clicking a map territory.

Example

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 handles 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:

PrxChartView