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

path.bounds should return numbers even when input coordinates are strings

Fil opened this issue · comments

d3.geoPath().bounds({type: "MultiPoint", coordinates: [["-32", "-20"], [32, 20]]})

returns [["-32", "-20"], [32, 20]]. I suggest we coerce the coordinates to numbers in

function boundsPoint(x, y) {

related observablehq/plot#1264