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
- Official codes are the join key. Names can be translated; codes remain stable.
- Missing data is normal. It renders with
fillDefaultrather than crashing. - Cartography loads at the level you request. Regional subdivision files are split and cached by region.
- Accessibility is part of the component contract. Interactive maps use one roving Tab stop and keyboard activation.
- The application owns localization.
featureLabelchanges presentation text without mutating canonical BCN names.
Continue with Getting started or open the interactive examples.