JimuMapViewComponentProps

Interface

JimuMapViewComponentProps provides information about the JimuMapViewComponent .

Properties

PropertyTypeNotes
(activeViewJimuMapView, previousActiveViewIdstring) => 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 DataSource for the map widget.

(viewGroupJimuMapViewGroup) => void

The JimuMapViewGroup is created once the first view is added. Views in the groups may be still not loaded after a group is created.

(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.

(views{}) => void

This function is called once all of the JimuMapView instances have a JimuMapViewStatus of "LOADED" .

string

The map widget id selected within the MapWidgetSelector component.

onActiveViewChange

optional
Interface Property
onActiveViewChange: (activeViewJimuMapView, previousActiveViewIdstring) => 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 DataSource for the map widget.

Type declaration
    function(activeViewJimuMapView, previousActiveViewIdstring): void
    Parameters
    ParameterType
    activeView
    JimuMapView
    previousActiveViewId
    string
    Returns 
    void

onViewGroupCreate

optional
Interface Property
onViewGroupCreate: (viewGroupJimuMapViewGroup) => void

The 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(viewGroupJimuMapViewGroup): void
    Parameters
    ParameterType
    viewGroup
    JimuMapViewGroup
    Returns 
    void

onViewsChange

optional
Interface Property
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.

Type declaration
    function(views{}): void
    Parameters
    ParameterType
    views
    {}
    Returns 
    void

onViewsCreate

optional
Interface Property
onViewsCreate: (views{}) => void

This function is called once all of the JimuMapView instances have a JimuMapViewStatus of "LOADED" .

Type declaration
    function(views{}): void
    Parameters
    ParameterType
    views
    {}
    Returns 
    void

useMapWidgetId

Interface Property
useMapWidgetId: string

The map widget id selected within the MapWidgetSelector component.

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