-
Notifications
You must be signed in to change notification settings - Fork 383
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 #2321. Keep circle on change #2326
Conversation
@@ -144,12 +144,20 @@ class GeometryDetails extends React.Component { | |||
center.x - this.circle.radius, center.y - this.circle.radius, | |||
center.x + this.circle.radius, center.y + this.circle.radius | |||
]; | |||
|
|||
let coordinates = CoordinatesUtils.calculateCircleCoordinates(center, this.circle.radius, 100); | |||
if (this.props.geometry && this.props.geometry.projection === "EPSG:4326") { |
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.
Can't we reproject from any projection that is not the current map projection to the current map projection?
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.
I could try, but don't know if it works, because of #2222
Description
This pull request fixes 2 kind of issues in Advanced Search circle spatial filter:
Issues
Please check if the PR fulfills these requirements
What kind of change does this PR introduce? (check one with "x", remove the others)
What is the current behavior? (You can also link to an open issue here)
In advanced search, when you try to edit the circle's details, a marker appears on the map instead of circle. When save the changes, the geometry is not valid and so the search produces no results.
What is the new behavior?
Now you can change the details and the geometry remains a circle.
Does this PR introduce a breaking change? (check one with "x", remove the other)
Other information:
The #2222 still exists. So the real geometry used for the filter is not the same of the one drown on the map.