I’m learning about rendering maps in d3js. Right now I am trying to clip paths rendered from geojson objects to within a polygon.
I have mostly been following the Mike Bostock’s example here, and Fil’s example here.
However, using d3js v7.4.4, when I call d3.geoClipPolygon I am given a type error and told that d3.geoClipPolygon is not a function (nor is it defined generally).
Has d3.geoClipPolygon been deprecated?
Happy to supply more code in a separate question for debugging, but I want to make sure this wasn’t the issue first.
Just curious, why is this considered an “advanced map projection”? I’m not really using any custom or special projections, just trying to clip using a shape (polygon) besides a circle/rectangle.
(Apologies, I guess a question like this should be under the beginner’s forum.)