d3 / d3-geo

Geographic projections, spherical shapes and spherical trigonometry.

Home Page:https://d3js.org/d3-geo

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Configurable precision for d3.geoPath

mbostock opened this issue · comments

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.