I tried to modify the widget for displaying map coordinates alongside it. However, when I launched it, I noticed that the ActiveViewChange function does not execute. Below is my widget's code.
export default class Widget extends React.Component<AllWidgetProps<IMConfig>, any>{
constructor(props) {
super(props);
}
ActiveViewChange = (jmv: JimuMapView): void => {
console.log(jmv)
}
render() {
return (
<div className="widget-demo jimu-widget m-2">
{this.props.hasOwnProperty("useMapWidgetIds") &&
this.props.useMapWidgetIds &&
this.props.useMapWidgetIds.length === 1 && (
<JimuMapViewComponent
useMapWidgetId={this.props.useMapWidgetIds?.[0]}
onActiveViewChange={this.ActiveViewChange}
/>
)}
<p><FormattedMessage id="pr" defaultMessage={defaultMessages.pr} /></p>
</div>
)
}
}Is there anyone who might have an idea about the issue?