This directory contains TypeScript examples for @vnedyalk0v/react19-simple-maps.
- basic-map - Simple world map with click/hover interactions and city markers
- interactive-map - Zoom/pan, projection switching, hover/selection, markers, and quick navigation presets
Both examples include CSP meta tags and basic security headers in index.html. The Vite dev server also sets CSP/headers in vite.config.ts. The examples use pinned https://unpkg.com geography URLs to avoid redirect-related fetch issues in browsers while staying within the CSP allowlist.
See SECURITY.md for details.
Each example is a standalone TypeScript project. To run one:
cd examples/basic-map
npm install
npm run dev- Node.js 18+
- TypeScript 5.0+
- React 19+
Each example includes a strict tsconfig.json with bundler module resolution and React JSX settings.
New examples are welcome. Please keep them TypeScript-first and include a short README with setup instructions.