Skip to content

JimuMapViewComponent

constant
Variable
JimuMapViewComponent: ConnectedComponent<typeof_JimuMapViewComponentJimuMapViewComponentProps> = ...

A React component that makes it easy to use the JimuMapView instance from the map widget. In most cases, you can pass in useMapWidgetId , and use onViewsCreate , onActiveViewChange to get callback from the JimuMapViewComponent .

Use dark colors for code blocksCopy
1
2
3
4
5
6
7
8
9
10
11
12
13
import { JimuMapViewComponent } from 'jimu-arcgis'

const onActiveViewChange = (activeView: JimuMapView) => {
// current active JimuMapView is changed

if (activeView) {
  activeView.whenJimuMapViewLoaded().then(() => {
    // do something with activeView
  })
}
}

<JimuMapViewComponent useMapWidgetId={mapWidgetId} onActiveViewChange={onActiveViewChange} />

Your browser is no longer supported. Please upgrade your browser for the best experience. See our browser deprecation post for more details.