Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix #1392 added viewport into spatial filter list #1822

Merged
merged 3 commits into from
May 15, 2017

Conversation

MV88
Copy link
Contributor

@MV88 MV88 commented May 12, 2017

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

Coverage Status

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

@@ -126,6 +128,18 @@ function selectSpatialMethod(method, fieldName) {
};
}

function selectViewportSM() {
Copy link
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

@@ -96,6 +96,7 @@ const QueryBuilder = React.createClass({
onChangeDrawingStatus: () => {},
onRemoveSpatialSelection: () => {},
onShowSpatialSelectionDetails: () => {},
onSelectViewportSM: () => {},
Copy link
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

@@ -103,12 +103,11 @@ function createQuery(searchUrl, filterObj) {
};
}

function query(searchUrl, filterObj, retry) {
function query(searchUrl, filterObj) {
Copy link
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
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
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

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

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