How to use the d3-geo-projection.geoPatterson function in d3-geo-projection

To help you get started, we’ve selected a few d3-geo-projection examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github owid / owid-grapher / charts / MapProjections.ts View on Github external
@computed get Asia(): GeoPath {
        const projection = geoPatterson()
            .center([58, 54])
            .scale(150)
            .translate([0, 0])
            .precision(0.1)
        const path = geoPath().projection(projection)
        return path
    }