Interface
JimuMapViewComponentProps  provides information about the  JimuMapViewComponent .
Properties
| Property | Type | Notes | 
|---|---|---|
| onActiveViewChange | (activeView: JimuMapView, previousActiveViewId: string) => void | This function is called when the current active view of the map widget is changed.
For example, it is called when clicking on the switch-map tool for multi-source maps or changing the   | 
| onViewGroupCreate | (viewGroup: JimuMapViewGroup) => void | The   | 
| onViewsChange | (views: {}) => void | This function is called When a view is destroyed or created. Note that the views in the callback function are not the changed views, but the latest views currently owned by the map widget. | 
| onViewsCreate | (views: {}) => void | This function is called once all of the   | 
| useMapWidgetId | string | The map widget id selected within the   | 
onActiveViewChange
onActiveViewChange: (activeView: JimuMapView, previousActiveViewId: string) => voidThis function is called when the current active view of the map widget is changed.
For example, it is called when clicking on the switch-map tool for multi-source maps or changing the  DataSource  for the map widget.
Type declaration
function(activeView: JimuMapView, previousActiveViewId: string): voidParameters
| Parameter | Type | 
|---|---|
| active | JimuMapView | 
| previous | string | 
Returns
voidonViewGroupCreate
onViewGroupCreate: (viewGroup: JimuMapViewGroup) => voidThe  JimuMapViewGroup  is created once the first view is added. Views in the groups may be still not loaded after a group is created.
Type declaration
function(viewGroup: JimuMapViewGroup): voidParameters
| Parameter | Type | 
|---|---|
| view | JimuMapViewGroup | 
Returns
voidonViewsChange
onViewsChange: (views: {}) => voidThis function is called When a view is destroyed or created. Note that the views in the callback function are not the changed views, but the latest views currently owned by the map widget.
Type declaration
function(views: {}): voidParameters
| Parameter | Type | 
|---|---|
| views | {} | 
Returns
void