Skip to content

Fix #1392 added viewport into spatial filter list#1822

Merged
offtherailz merged 3 commits into
geosolutions-it:masterfrom
MV88:iss_1392_viewport
May 15, 2017
Merged

Fix #1392 added viewport into spatial filter list#1822
offtherailz merged 3 commits into
geosolutions-it:masterfrom
MV88:iss_1392_viewport

Conversation

@MV88

@MV88 MV88 commented May 12, 2017

Copy link
Copy Markdown
Contributor

The Viewport optios has been added to the spatial filter list.
image
Every time the view changes the geometry of the filterObj updates with an epic.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.08%) to 79.228% when pulling 1f650e7 on MV88:iss_1392_viewport into 5b0b8c3 on geosolutions-it:master.

Comment thread web/client/actions/queryform.js Outdated
};
}

function selectViewportSM() {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't be shy, selectViewportSpatialMethod

onChangeDrawingStatus: () => {},
onRemoveSpatialSelection: () => {},
onShowSpatialSelectionDetails: () => {},
onSelectViewportSM: () => {},

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

don't be shy

}

function query(searchUrl, filterObj, retry) {
function query(searchUrl, filterObj) {

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is retry not used?

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nope, it's been removed in getFeatures method of DockerFeatureGrid component

action$.ofType(SELECT_VIEWPORT_SPATIAL_METHOD, CHANGE_MAP_VIEW)
.switchMap((action) => {
// calculate new geometry from map properties
const map = action.type === CHANGE_MAP_VIEW ? action : store.getState().map.present;

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

are you updating the geometry also if the spatial filter is not Viewport?

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage decreased (-0.08%) to 79.228% when pulling aa4b54b on MV88:iss_1392_viewport into 5b0b8c3 on geosolutions-it:master.

@coveralls

Copy link
Copy Markdown

Coverage Status

Coverage increased (+0.1%) to 79.408% when pulling 8869c0b on MV88:iss_1392_viewport into 5b0b8c3 on geosolutions-it:master.

@offtherailz offtherailz merged commit f995801 into geosolutions-it:master May 15, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants