-
Notifications
You must be signed in to change notification settings - Fork 15
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
Wfnews 1829 #1588
Conversation
…fication snackbar
), | ||
); | ||
if ( | ||
response && |
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.
response?.features?.length > && response?.features[0].geometry?.rings?.length > 0
), | ||
); | ||
if ( | ||
response && |
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.
Same here as above, minimize the If calls. Sonar will bark at this
), | ||
); | ||
if ( | ||
response && |
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.
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( |
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.
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
No description provided.