Closed
Description
The following throws an error on my map when using AlbersUSA projection,
{events.map(event => {
const marker = {
coordinates: event.geoLocation,
name: event.title,
};
return (
<Marker marker={marker} key={event.id}>
<circle cx={0} cy={0} r={10} />
</Marker>
);
})}
The error happens because it's calling clipAngle
on the projection but clipAngle doesn't exist,
react-simple-maps/src/Marker.js
Line 117 in 423a5ae
I was able to change the compiled src,
var isGlobe = projection.clipAngle() === degrees;
to
var isGlobe = false;
and the markers successfully rendered.