Skip to content

Commit

Permalink
#96 ReSync selection on new tab (#105)
Browse files Browse the repository at this point in the history
  • Loading branch information
offtherailz authored Feb 26, 2021
1 parent a64c4a1 commit 2273380
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions js/extension/epics/layerSync.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ import {
SET_LAYER_STYLE,
SET_STYLES,
ZOOM_TO_RESULTS,
UPDATE_LAYER_STYLE
UPDATE_LAYER_STYLE,
ADD_PLOT_SELECTION
} from '../actions/cadastrapp';
import {
getCurrentPlotFeatures,
Expand All @@ -32,7 +33,7 @@ import {


export const syncLayerForPlots = (action$, {getState = () => {}})=>
action$.ofType(SETUP_COMPLETED, ADD_PLOTS, REMOVE_PLOTS, SET_ACTIVE_PLOT_SELECTION, REMOVE_PLOT_SELECTION, SELECT_PLOTS, DESELECT_PLOTS, SET_LAYER_STYLE, SET_STYLES, UPDATE_LAYER_STYLE) // actions that modify the layer, so it needs an update.
action$.ofType(SETUP_COMPLETED, ADD_PLOT_SELECTION, ADD_PLOTS, REMOVE_PLOTS, SET_ACTIVE_PLOT_SELECTION, REMOVE_PLOT_SELECTION, SELECT_PLOTS, DESELECT_PLOTS, SET_LAYER_STYLE, SET_STYLES, UPDATE_LAYER_STYLE) // actions that modify the layer, so it needs an update.
.switchMap(() => {
const features = getCurrentPlotFeatures(getState());
const options = getCadastrappVectorLayer(getState());
Expand Down

0 comments on commit 2273380

Please sign in to comment.