-
Notifications
You must be signed in to change notification settings - Fork 1
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
Feature/clean map on polygon #904
Conversation
src/pages/search/Selector.jsx
Outdated
if (tabId === "draw-polygon") { | ||
handlers.areaListChange(); | ||
handlers.polygonChange(); | ||
} else { | ||
handlers.areaListChange(); |
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 don't like this approach.
-
you are calling the function ´areaListChange()´ when de condition is true and false, so in these cases you can simply put it out of the condition.
-
I like better try to inactivate all layers in Search instead of here. Check shutOffLayer funtion and try to use it inside polygonChange handler.
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.
reorganize the code because the "shutOffLayer " function is not executed when clicking the "Área de consulta" button
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.
What changes did you make in this file? I couldn't identify them
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.
Undo the formatting changes, it's impossible to identify the relevant changes
It was very difficult to review the changes because to a prettier update |
No description provided.