Skip to content

Commit

Permalink
changed the 'update flow' of filter obj for the layer
Browse files Browse the repository at this point in the history
  • Loading branch information
MV88 committed Nov 22, 2017
1 parent 482a05b commit a2dbf3a
Show file tree
Hide file tree
Showing 6 changed files with 316 additions and 105 deletions.
8 changes: 7 additions & 1 deletion web/client/actions/__tests__/featuregrid-test.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,8 @@ const {
zoomAll, ZOOM_ALL,
openAdvancedSearch, OPEN_ADVANCED_SEARCH,
initPlugin, INIT_PLUGIN,
sizeChange, SIZE_CHANGE
sizeChange, SIZE_CHANGE,
START_SYNC_WMS, startSyncWMS
} = require('../featuregrid');

const idFeature = "2135";
Expand Down Expand Up @@ -223,6 +224,11 @@ describe('Test correctness of featurgrid actions', () => {
expect(retval).toExist();
expect(retval.type).toBe(ZOOM_ALL);
});
it('Test startSyncWMS', () => {
const retval = startSyncWMS();
expect(retval).toExist();
expect(retval.type).toBe(START_SYNC_WMS);
});
it('Test openAdvancedSearch', () => {
const retval = openAdvancedSearch();
expect(retval).toExist();
Expand Down
7 changes: 6 additions & 1 deletion web/client/actions/featuregrid.js
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,11 @@ function zoomAll() {
type: ZOOM_ALL
};
}
function startSyncWMS() {
return {
type: START_SYNC_WMS
};
}
function sizeChange(size, dockProps) {
return {
type: SIZE_CHANGE,
Expand Down Expand Up @@ -353,6 +358,6 @@ module.exports = {
toggleEditMode,
toggleViewMode,
initPlugin, INIT_PLUGIN,
START_SYNC_WMS,
START_SYNC_WMS, startSyncWMS,
STOP_SYNC_WMS
};
Loading

0 comments on commit a2dbf3a

Please sign in to comment.