JimuMapViewComponent
FunctionJimuMapViewComponent(props: { onActiveViewChange?: (activeView: JimuMapView, previousActiveViewId: string) => void; onViewGroupCreate?: (viewGroup: JimuMapViewGroup) => void; onViewsCreate?: (views: { [viewId: string]: JimuMapView }) => void; useMapWidgetId: string }, context?: any): ReactNode
A React component that makes it easy to use the JimuMapView
instance from the map widget.
In most cases, you can pass in useMapWidgetIds
, and use onViewsCreate
, onActiveViewChange
to get callback from the JimuMapViewComponent
.
Parameters
Parameter | Type |
---|---|
props | { onActiveViewChange?: (activeView: JimuMapView, previousActiveViewId: string) => void; onViewGroupCreate?: (viewGroup: JimuMapViewGroup) => void; onViewsCreate?: (views: { [viewId: string]: JimuMapView }) => void; useMapWidgetId: string } |
context | any |
Returns
ReactNode