diff --git a/packages/vx-geo/src/projections/Projection.js b/packages/vx-geo/src/projections/Projection.js index f61199ece..e6bbe7628 100644 --- a/packages/vx-geo/src/projections/Projection.js +++ b/packages/vx-geo/src/projections/Projection.js @@ -39,6 +39,8 @@ export default function Projection({ graticuleLines, graticuleOutline, className, + innerRef, + pointRadius, ...restProps }) { const currProjection = projectionMapping[projection](); @@ -47,7 +49,7 @@ export default function Projection({ if (clipExtent) currProjection.clipExtent(clipExtent); if (scale) currProjection.scale(scale); if (translate) currProjection.translate(translate); - if (center) currProjection.translate(center); + if (center) currProjection.center(center); if (rotate) currProjection.rotate(rotate); if (precision) currProjection.rotate(precision); if (fitExtent) currProjection.fitExtent(...fitExtent); @@ -55,6 +57,8 @@ export default function Projection({ const path = geoPath().projection(currProjection); + if (pointRadius) path.pointRadius(pointRadius); + return ( {graticule && @@ -75,6 +79,7 @@ export default function Projection({