Skip to content
Snippets Groups Projects
Commit 5dcdae4f authored by Xiao Gui's avatar Xiao Gui
Browse files

chore: added action to request to clear ng view

parent 344c8945
No related branches found
No related tags found
No related merge requests found
......@@ -8,6 +8,7 @@ import {
ngViewerActionRemoveNgLayer,
ngViewerActionSetPerspOctantRemoval,
ngViewerActionToggleMax,
ngViewerActionClearView,
} from './ngViewerState/actions'
export {
......@@ -15,4 +16,5 @@ export {
ngViewerActionRemoveNgLayer,
ngViewerActionSetPerspOctantRemoval,
ngViewerActionToggleMax,
ngViewerActionClearView,
}
......@@ -19,4 +19,30 @@ export const ngViewerActionSetPerspOctantRemoval = createAction(
export const ngViewerActionToggleMax = createAction(
`[ngViewerAction] toggleMax`,
props<{ payload: { index: number } }>()
)
\ No newline at end of file
)
/**
* Clear viewer view from additional layers such as PMap or connectivity
* To request view to be cleared, call
* this.store$.dispatch(
* ngViewerActionClearView({
* payload: {
* ['my-unique-id']: true
* }
* })
* )
*
* When finished, call
*
* this.store$.dispatch(
* ngViewerActionClearView({
* payload: {
* ['my-unique-id']: false
* }
* })
* )
*/
export const ngViewerActionClearView = createAction(
`[ngViewerAction] clearView`,
props<{ payload: { [key:string]: boolean }}>()
)
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment