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

Wfnews 1829 #1588

Closed
wants to merge 46 commits into from
Closed

Wfnews 1829 #1588

wants to merge 46 commits into from

Conversation

yzlucas
Copy link
Collaborator

@yzlucas yzlucas commented Feb 6, 2024

No description provided.

@yzlucas yzlucas requested a review from dhlevi February 6, 2024 06:31
),
);
if (
response &&
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

response?.features?.length > && response?.features[0].geometry?.rings?.length > 0

),
);
if (
response &&
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Same here as above, minimize the If calls. Sonar will bark at this

),
);
if (
response &&
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

And once again, with feeling


fitPolygonToMap(polygonData: number[][], viewerMap: L.Map): L.Polygon {
const swappedPolygonData: number[][] = polygonData.map(([latitude, longitude]) => [longitude, latitude]);
const polygonShape = L.polygon(
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why are we adding the polygon data to the map? Does it get removed later? I didn't see a removal. If this is just a zoom to bounds, we don't need to add it

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.

2 participants