You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Updating to v2 shows up strange problem with drawing geojson with geoPath. Most of geojson I tried doesn't draw correctly. In examples below is same code with two versions of d3-geo. on v1 both maps are drawen correctly, on v2 first map is off.
Edit: it seems that problem occurs when calculating the bonds of geojson geoPath.bounds
If you log console.log("area", d3.geoArea(props.geometry)) in both versions you will see that the polygons are all covering the sphere. This happens because they are not in the correct winding order.
However there was a bug in d3-geo@1 that was miscalculating the very small polygons, and so the two issues kind of cancelled each other, and you ended up with the (visually) correct result in d3-geo@1.
Updating to v2 shows up strange problem with drawing geojson with geoPath. Most of geojson I tried doesn't draw correctly. In examples below is same code with two versions of d3-geo. on v1 both maps are drawen correctly, on v2 first map is off.
Edit: it seems that problem occurs when calculating the bonds of geojson geoPath.bounds
v1: https://jsfiddle.net/donatso/najf04ve/4/
v2: https://jsfiddle.net/donatso/najf04ve/2/
The text was updated successfully, but these errors were encountered: