mapview samples not working in v1.4.0?

278
2
07-04-2021 11:41 AM
by Anonymous User
Not applicable

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

 

 

0 Kudos
2 Replies
Jianxia
Esri Regular Contributor

Thanks for letting us know. @TianWen 

0 Kudos
TianWen
Esri Contributor

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. :grinning_face:

0 Kudos