Skip to content

Latest commit

 

History

History
 
 

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

README.md

react19-simple-maps Examples

This directory contains TypeScript examples for @vnedyalk0v/react19-simple-maps.

Available Examples

  • 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

Security Notes

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.

Running Examples

Each example is a standalone TypeScript project. To run one:

cd examples/basic-map
npm install
npm run dev

Requirements

  • Node.js 18+
  • TypeScript 5.0+
  • React 19+

TypeScript Configuration

Each example includes a strict tsconfig.json with bundler module resolution and React JSX settings.

Contributing

New examples are welcome. Please keep them TypeScript-first and include a short README with setup instructions.