-
Notifications
You must be signed in to change notification settings - Fork 0
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
build(deps): bump @turf/union from 7.0.0 to 7.1.0 #504
Conversation
✅ Deploy Preview for oslmap ready!
To edit notification comments on pull requests, go to your Netlify site configuration. |
49b9cca
to
58ea0ff
Compare
@@ -742,7 +742,9 @@ export class MyMap extends LitElement { | |||
} | |||
|
|||
if (this.showGeojsonDataMarkers) { | |||
this.geojsonData.features.forEach((feature: GeoJSONFeature) => { | |||
this.geojsonData.features.forEach((feature) => { | |||
if (feature.geometry.type !== "Point") return; |
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.
Required type narrowing
const allFeatures = featureSource | ||
.getFeatures() | ||
.map((feature) => geojson.writeFeatureObject(feature)) | ||
.filter((feature): feature is Feature<Polygon | MultiPolygon> => |
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.
This filter()
is required for type narrowing.
geojson.readFeature( | ||
featureSource.getFeatures().reduce((acc: any, curr) => { | ||
const toMerge = geojson.writeFeatureObject(curr).geometry; | ||
return acc ? union(acc, toMerge) : toMerge; |
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.
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.
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.
FYI think our use of OS Features API has maybe been out of whack for a bit beyond Turf changes here ! Sorry didn't log this as issue sooner - may not be terrible solution to mark clickFeatures
and other reliant props as @deprecated
in meantime and log as Github Issue to revisit/reimplement?
Think we'll need to come back to some variation of this feature eventually for applications with multiple address (eg union title boundaries).
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.
Thanks for picking these up & getting to bottom of XML filter issue !
Bumps [@turf/union](https://github.com/Turfjs/turf) from 7.0.0 to 7.1.0. - [Release notes](https://github.com/Turfjs/turf/releases) - [Changelog](https://github.com/Turfjs/turf/blob/master/CHANGELOG.md) - [Commits](Turfjs/turf@v7.0.0...v7.1.0) --- updated-dependencies: - dependency-name: "@turf/union" dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
06d5140
to
76694bb
Compare
Bumps @turf/union from 7.0.0 to 7.1.0.
Release notes
Sourced from
@turf/union
's releases.... (truncated)
Changelog
Sourced from
@turf/union
's changelog.Commits
68915ee
v7.1.0948cdaf
Upgrade pnpm/action-setup in github actions (#2696)5f0d405
Clarify behavior of some existing turf modules (#2683)ad8012c
chore: update cluster-dbscan docs (#2624)36cdb9f
Revert@turf/kinks
to 6.5.0 version (#2693)df7e42f
Fix@turf/mask
benchmarks to exclude test fixtures that are not usable (#2692)c470ea4
Add test.example.js to the prettier ignore list because it is a generated fil...7275eb9
Stop turf-mask mutating by default, make it an option (#2635)c8f24e0
Update@types/geojson
to 7946.0.10 minimum (#2688)25917d8
Rework prettier setup (#2677)You can trigger a rebase of this PR by commenting
@dependabot rebase
.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebase
will rebase this PR@dependabot recreate
will recreate this PR, overwriting any edits that have been made to it@dependabot merge
will merge this PR after your CI passes on it@dependabot squash and merge
will squash and merge this PR after your CI passes on it@dependabot cancel merge
will cancel a previously requested merge and block automerging@dependabot reopen
will reopen this PR if it is closed@dependabot close
will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually@dependabot show <dependency name> ignore conditions
will show all of the ignore conditions of the specified dependency@dependabot ignore this major version
will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor version
will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependency
will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)