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

Feature/clean map on polygon #904

Closed
wants to merge 5 commits into from
Closed

Conversation

hacheG
Copy link
Contributor

@hacheG hacheG commented Jan 24, 2024

No description provided.

Comment on lines 57 to 61
if (tabId === "draw-polygon") {
handlers.areaListChange();
handlers.polygonChange();
} else {
handlers.areaListChange();
Copy link
Member

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.

  1. 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.

  2. I like better try to inactivate all layers in Search instead of here. Check shutOffLayer funtion and try to use it inside polygonChange handler.

Copy link
Contributor Author

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

Copy link
Member

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

Copy link
Member

@erikasv erikasv left a 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

@hacheG hacheG closed this Feb 9, 2024
@hacheG
Copy link
Contributor Author

hacheG commented Feb 9, 2024

It was very difficult to review the changes because to a prettier update

@hacheG hacheG deleted the feature/cleanMapOnPolygon branch February 12, 2024 20:42
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

3 participants