-
Notifications
You must be signed in to change notification settings - Fork 158
Open
Description
See this notebook: https://observablehq.com/@mattijn/single-point-has-no-extent
Basically:
p = d3.geoMercator()
p.fitExtent(
[[0,0],[500,500]],
{"type": "Feature", "geometry": {"type": "Point", "coordinates": [4.8885, 52.4039]}}
)
p.scale() // Infinity
p.translate() // [-Infinity, Infinity]
Not sure if it is by design or unwanted behaviour. I understand its hard to compute an extent of a single point.
First raised in vega/vega-lite#5318
Metadata
Metadata
Assignees
Labels
No labels