Skip to main content

react-chile-map

react-chile-map provides typed React components and processed BCN cartography for building choropleth maps of Chile without assembling a mapping stack first.

Use it when your application has values keyed by official territorial codes and needs to display:

  • all 16 regions with ChileMap;
  • the comunas inside one region with RegionComunasMap; or
  • the provincias inside one region with RegionProvinciasMap.

The package handles projections, regional lazy loading, missing data, scales, legends, tooltips, selection, keyboard interaction, and oceanic-island insets. Your application remains responsible for the values, presentation language, and meaning of the visualization.

Package status

The project is currently pre-1.0. Review the changelog before minor upgrades because 0.x minor versions may contain documented breaking changes.

Design principles

  1. Official codes are the join key. Names can be translated; codes remain stable.
  2. Missing data is normal. It renders with fillDefault rather than crashing.
  3. Cartography loads at the level you request. Regional subdivision files are split and cached by region.
  4. Accessibility is part of the component contract. Interactive maps use one roving Tab stop and keyboard activation.
  5. The application owns localization. featureLabel changes presentation text without mutating canonical BCN names.

Continue with Getting started or open the interactive examples.