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

Configurable precision for d3.geoPath #271

Closed
mbostock opened this issue Dec 18, 2022 · 0 comments · Fixed by #272
Closed

Configurable precision for d3.geoPath #271

mbostock opened this issue Dec 18, 2022 · 0 comments · Fixed by #272

Comments

@mbostock
Copy link
Member

As with d3.pathFixed d3/d3-path#12, we should have a way to limit the precision of the strings generated by d3.geoPath. Currently that is implemented by the PathString class:

https://github.com/d3/d3-geo/blob/main/src/path/string.js

We should probably default to three decimal digits of precision, too.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

Successfully merging a pull request may close this issue.

1 participant