Skip to content

GeoInput

GeoInput = GeoJSON.GeoJSON | GeoSphere

Defined in: geo/project.ts:13

A GeoJSON object d3-geo can project + render (feature, geometry, or collection), plus the GeoJSON-adjacent GeoSphere ({ type: "Sphere" }) that d3-geo’s projections and geoPath accept natively to draw the whole-globe outline (the ocean/graticule background). GeoSphere isn’t part of the GeoJSON spec, so it has to be unioned in explicitly — without it, callers must cast a Sphere with as any / as unknown as GeoInput.