-
Notifications
You must be signed in to change notification settings - Fork 8.3k
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
Should only fit on shapes that are part of the result #12881
Should only fit on shapes that are part of the result #12881
Conversation
jenkins, test this |
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.
tested and it works ok, LGTM
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.
LGTM, though I do have a suggestion
} | ||
}; | ||
} | ||
|
||
const { min, max } = getMinMax(data); | ||
const outstandingFeatures = data.slice(); | ||
|
||
|
||
const joinedShapes = []; |
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 think this would be a little easier for me to understand if we tracked the bounds here, extended it on each call to getLeafletStyleFunction
, and just returned the current version in getLeafletBounds()
.
let bounds = new L.LatLngBounds()
...
bounds = bounds.extend(L.geoJson(shape).getBounds())
...
return bounds;
fdc0408
to
0bd8008
Compare
jenkins, test this |
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.
LGTM 👍
0bd8008
to
0ee9054
Compare
jenkins, test this |
0ee9054
to
bd626ce
Compare
jenkins, test this |
bd626ce
to
ab29e41
Compare
Release Note: When clicking the fit-data button in a Region Map, the map now zooms correctly to the relevant data instead of showing the entire layer.
Closes #12220.