How to use react-simple-maps - 1 common examples

To help you get started, we’ve selected a few react-simple-maps 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 Vizzuality / trase / frontend / scripts / react-components / shared / world-map / world-map.selectors.js View on Github external
const getWorldMapProjection = createSelector([getWidth, getScale], (width, scale) =>
  projections(
    width || 800,
    width ? Math.round(width * WORLD_MAP_ASPECT_RATIO) : 448,
    {
      scale: scale || 140,
      rotation: [0, 0, 0]
    },
    'robinson'
  )
);

react-simple-maps

An svg map chart component built with and for React

MIT
Latest version published 2 years ago

Package Health Score

55 / 100
Full package analysis

Popular react-simple-maps functions