-
Notifications
You must be signed in to change notification settings - Fork 400
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
Conversation
web/client/actions/queryform.js
Outdated
@@ -126,6 +128,18 @@ function selectSpatialMethod(method, fieldName) { | |||
}; | |||
} | |||
|
|||
function selectViewportSM() { |
There was a problem hiding this comment.
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: () => {}, |
There was a problem hiding this comment.
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) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
is retry not used?
There was a problem hiding this comment.
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
web/client/epics/wfsquery.js
Outdated
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; |
There was a problem hiding this comment.
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?
The Viewport optios has been added to the spatial filter list.
Every time the view changes the geometry of the filterObj updates with an epic.