Hello All,
I was having trouble getting any of the samples to work which use JimuMapView (e.g. get-map-coordinates, showextent). I finally found that changing from this:
<JimuMapViewComponent
useMapWidgetIds={this.props.useMapWidgetIds}
onActiveViewChange={this.activeViewChangeHandler}
/>
to this:
<JimuMapViewComponent
useMapWidgetId={props.useMapWidgetIds[0]}
onActiveViewChange={activeViewChangeHandler}
/>
seems to address the problem and indeed the 1.4.0 release notes confirm this. Wish I'd looked there first!
--john
Thanks for letting us know. @TianWen
Yes. the sample code evolves following the changes of each release. You can avoid those problems by using the latest sample code or check the release notes for details. 😀