Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

fix: Fix USA subunits, clean up land, coastlines topojson layers#7555

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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged

Conversation

@camdecoster
Copy link
Contributor

@camdecostercamdecoster commentedSep 9, 2025
edited
Loading

Description

Omit Canadian provinces from USA subunits and snap polygons for land, coastlines topojson layers.

Closes#7528.

Changes

  • Update topojson processing script
  • Update topojson maps
  • Update Biome config
  • Update test baseline images

Screenshots

DescriptionBeforeAfter
USA Subunitsimageimage
Coastlinesimageimage

Testing

  • Run the build script and see if it completes successfully:cd topojson && npm run build
  • Load the new maps inMapshaper and see if they look alright
    • Drag a map file into the Mapshaper web app
  • Make sure CI passes the mock image diff checks

TODO

  • Add draftlog
  • Update test baseline images (if needed)

@gvwilsongvwilson added P1needed for current cycle fixfixes something broken labelsSep 10, 2025
@camdecostercamdecoster marked this pull request as ready for reviewSeptember 11, 2025 01:27
"noConsole": {"level":"off","options": {"allow": ["log"] } }
}
},
"includes": [
Copy link
Contributor

Choose a reason for hiding this comment

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

@camdecoster What is the effect of this config change?

Copy link
ContributorAuthor

Choose a reason for hiding this comment

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

You can override the global includes using this one. It included all the same stuff as the global one, so I removed it as redundant.


asyncfunctioncreateSubunitsLayer({ name, resolution, source}){
constfilter=['AUS','BRA','CAN','USA'].map((id)=>`adm0_a3 === "${id}"`).join(' || ');
// Only include USA for 'usa' scope since the UN and NE borders don't match exactly and slivers of Canada creep in
Copy link
Contributor

Choose a reason for hiding this comment

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

slivers of Canada creep in

😄

Copy link
Contributor

@emilyklemilykl left a comment

Choose a reason for hiding this comment

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

🚀

@camdecostercamdecoster merged commitb04398c intomasterSep 11, 2025
6 checks passed
@camdecostercamdecoster deleted the cam/7528/fix-subunits-coastlines-topojson branchSeptember 11, 2025 17:37
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment

Reviewers

@emilyklemilyklemilykl approved these changes

Assignees

No one assigned

Labels

fixfixes something brokenP1needed for current cycle

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Subunits layer for USA includes slivers of Canadian provinces

4 participants

@camdecoster@emilykl@gvwilson

[8]ページ先頭

©2009-2025 Movatter.jp